401 on graph /sendMail API

Kiril Arsov 5 Reputation points
2025-05-14T11:00:15.82+00:00

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
  1. 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.