Purushotam Sah
Purushotam Sah

Reputation: 96

Get User Information using Access Token in Microsoft graph API

My application wants to access all users' mailboxes. For that, I am getting permission from Admin consent. Now I want to get the user details of the admin who consented to the application. I know we can't use Me context ('/me' API end-point) as we are getting consent without a signed-in user.

Is there any way by which we can get user details of the admin who consented to our application using the access token?

Thanks in advance.

Upvotes: 1

Views: 648

Answers (1)

Diana
Diana

Reputation: 718

To the best of my knowledge, the access token does not contain user details of the admin who consented to your application. One way to get this information is by viewing activity reports in the Azure portal. You might also consider working with the activity reports API provided by Microsoft Graph.

Please let me know whether this helps and if you have further questions.

Upvotes: 1

Related Questions