Applies to: Cayosoft Administrator 4.3 or later.
Summary: In order to access Microsoft Graph API to collect analytical data and work with Office 365 in Web Interface, the Cayosoft Office 365 connection account must be granted Administrative Consent.
This article describes typical issues associated with Graph API.
Error when running Analytics collection | Microsoft Office 365 Usage rule
Issue: you configured Home > Rules > Built-in Rules (Pre-configured) > Analytics collection | Microsoft Office 365 Usage rule to use Graph API to collect data and the rule shows error in its results:
Access denied: Administrative consent to use Microsoft Graph API has not been granted. Please go to Cayosoft Console > Configuration > Microsoft Office 365 > Admin Consent, to grant it this permission.
- Verify that you have granted consent as it is described in this article: Admin Consent to Azure APIs - Connecting to the Microsoft Graph API and re-run the Analytics collection runbook.
- If you have already done this, but the error has not disappeared, check the MSOnline PowerShell module version as it described in the next section.
Consent Granted field didn't change to YES after clicking on Grant...
Issue: You performed all actions described in the article Admin Consent to Azure APIs - Connecting to the Microsoft Graph API but Consent Granted still shows NO in Microsoft Office 365 Extension > Admin Consent.
Reason 1: Ensure that when granting you entered the same credentials as you're using on Microsoft Office 365 extension settings.
Reason 2: You need to reinstall MSOnline PowerShell module. Follow the instructions described in this KB article: Use Requirements Check tool to install Azure AD and MS Online modules
Admin Consent to Azure APIs - Connecting to the Microsoft Graph API
KB20131202-1 Required components to work with Azure AD and Office 365 Services: Exchange Online, SharePoint Online, Skype for Business Online
KB20180503-1 Troubleshooting connection to Office 365
Use Requirements Check tool to install Azure AD and MS Online modules
Manual installation PowerShell modules
Please sign in to leave a comment.