A cloud-based identity and access management service for securing user authentication and resource access
Hello @Anonymous ,
I reviewed the error which is as below:
error_description: "AADSTS65005: The application 'ccccccccccccccccccc529e1e475f1' asked for scope 'Roles.Read' that doesn't exist".
Trace ID: 44155b40-cd65-4da5-beaa-6dd695610b00
Correlation ID: 83924fd9-7d03-41ad-832e-2138c33577f3
Timestamp: 2023-07-05 17:15:48Z",
There are no issues with Client Id generated on Azure AD App. Error focuses on the scope that specific app is requesting for. As the error says the 'Roles.Read' scope is not listed on your app registration. To get rid of this issue, you can try the following steps:
- Go to the app registration blade in Azure AD find the corresponding app registration whose App ID is mentioned in the error.
- Once you find the app, go to its API Permissions section and then check if the 'Roles.Read' permissions is listed there or not.
- If these permissions are not present there, select the "Add a permission" option and then select "Microsoft Graph API" or "Your Own API" which has scope 'Roles.Read' and add them.
Once the permissions are added successfully to your App Registration then give it a try it should work, as now the scopes mentioned in the request should be available.
Similar error has been discussed on following two Q&A posts:
- https://learn.microsoft.com/en-us/answers/questions/237980/the-application-asked-for-scope-that-doesn39t-exis.html
- https://learn.microsoft.com/en-us/answers/questions/99140/the-application-asked-for-scope-39wlbasicwlemails3.html
I hope this helps to resolve your query. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.