Is there an API for delegated permissions that can bypass the admin consent in Microsoft graph API

Anonymous
2024-10-25T12:13:21.05+00:00

Is there an API for delegated permissions that can bypass the admin consent in Microsoft graph API.?

I have grant Admin consent manually for Directory.ReadWrite.All.

I need to grant admin consent for Application.ReadWrite.All programmatically through API.Is it possible.please share details for that. Please refer attached screenshots.3.png

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vasil Michev 124.9K Reputation points MVP Volunteer Moderator
    2024-10-25T19:42:33.49+00:00

    You can use the /oauth2PermissionGrants endpoint for that, but you do need the DelegatedPermissionGrant.ReadWrite.All scope (NOT covered in Directory.ReadWrite.All).

    If you want to grant consent for specific users only, read here: https://www.michev.info/blog/post/6080/how-to-manage-entra-id-delegate-permissions-for-specific-users

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.