Either SCP Or Role Claim Need To Be Present In The Token [Microsoft Office 365]

How to fix "Either SCP or role claim need to be present in the token"?

Issue Description: When using Application ID and Secret or Application ID and Certificate from Office 365 Scope, the following error is thrown when trying to authenticate

Full Error In Text:

Code: AccessDenied
Message: Either scp or role claim need to be present in the token

Root Cause: No permissions are added to the Azure App Registration.

Resolution:

  1. Go to Azure -> App Registrations -> Select your App Registration -> go to the API Permissions blade -> Add Permissions

  1. To find the correct permissions, access the classic activities documentation and click on the hyperlinks in description to be redirected to Graph API documentation



1 Like