Forum Discussion
vsehgal
Feb 28, 2024Copper Contributor
Authorization_RequestDenied
Hi team, We are currently trying to get user email address removed for privacy reasons through the https://graph.microsoft.com/v1.0/users/email address removed for privacy reasons We get the ...
Prasad_Das-MSFT
Microsoft
Feb 29, 2024vsehgal - The error message indicates that the operation is being denied due to insufficient privileges. This means that the access token being used does not have the required permission scope to access the user's email address. You need to ensure that the access token has the necessary permission scope to read the user's profile information. In this case, you need to include the User.Read
permission scope when requesting the access token.
Ref: Get a user - Microsoft Graph v1.0 | Microsoft Learn
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- vsehgalMar 03, 2024Copper ContributorHI Prasad,
I can confirm that the User.Read scope is added to the application as well as the scope is being passed while making the authorization request.- Prasad_Das-MSFTMar 05, 2024
Microsoft
vsehgal - We tried to repro this issue by running below API and it is working fine at our end without any error:
Permissions used:
Get a user - Microsoft Graph v1.0 | Microsoft LearnThanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.