question

PhaniKumarSamudrala-5616 avatar image
0 Votes"
PhaniKumarSamudrala-5616 asked ·

adminconsent endpoint - retrieve user details who consented

Hello,

I am using adminconsent url (GET https://login.microsoftonline.com/{tenant}/adminconsent?) mentioned in the client credentials oauth flow. I am looking for a way to get the admin user details, like email, name, who has provided the consent. Looks the response to admin consent API doesn't have any details which can help in retrieving user details. Please help in getting admin user details.

Thanks

azure-ad-authentication
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipulsparsh-MSFT avatar image
0 Votes"
vipulsparsh-MSFT answered ·

@PhaniKumarSamudrala-5616 This is not possible, you cannot know which admin provided consent. Its always the consentType Admin with no user details.
There is no specific entity which will tell you more about the admin. The userobjectID always comes empty

75219-image.png



image.png (2.6 KiB)
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, this is bad. When admin consent moved to separate endpoint in v2 API, looks these details are overlooked. The new API should be adding new functionality but in this case loss of functionality.

0 Votes 0 ·