A cloud-based identity and access management service for securing user authentication and resource access
401 on graph /sendMail API
I have successfully obtained oAuth access token using https://login.microsoftonline.com/78b89706-c3e7-496a-ae39-eed396f02f11/oauth2/v2.0/token
I have successfully used this token to obtain users using https://graph.microsoft.com/v1.0/users
But when I try to sendEmail using https://graph.microsoft.com/v1.0/users/3fcfc7ec-239b-40d6-bd94-b637b4d8c2b6/sendMail I always get 401
I have registered an application with the required permissions:
Mail.SendApplicationMail.SendApplicationwhen extracting the token I see the permissions are there.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
2 deleted comments
Comments have been turned off. Learn more