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:
- Go to Azure -> App Registrations -> Select your App Registration -> go to the API Permissions blade -> Add Permissions
- To find the correct permissions, access the classic activities documentation and click on the hyperlinks in description to be redirected to Graph API documentation