Grant user consent for the delegated Graph API permissions without the UI flow

New Contributor

There are two types of the Graph API permissions we can grant for an AD application.

1. Application permissions

2. User Delegated permissions


For the application permissions:

AAD portal provides UI to Grand the Admin consent:




For the user delegated permissions:

For the delegated permissions to provide the consent, user need to login to the application requires the access and using the UI flow grant the permissions.



This is possible for the application which has the web UI, but for the backend without any UI this is not possible.



1. Can we avoid the UI flow for granting the consent for the user delegated permissions?  

2. Is there a way we can grant consent for the user delegated permissions from the Azure AD portal like we do for the Admin consent?

3. If it is not supported from the AD portal, is there a Graph APIs to grant the permissions?

4. If it is supported by the Graph APIs links to the documentation/example will help.


2 Replies
What you are showing on the first screenshot is only valid for your own tenant. Every "customer facing" application that needs any type of permissions (delegate OR application), needs to request them via the UI-based consent flow. There are no exceptions.



Consent should never be fully-automatable in any case.


Compliance, as a key component of good governance, should be auditable and approvers should be accountable. Full automation of such a key concept would take us backwards 10+ years in the technology systems space, and from a commercial perspective, we'd be grilled by risk-aware business stakeholders, insurers, etc.


I'm wondering what the problem you're trying to solve is? Particularly in the context that someone with the appropriate formal authority from the customer tenant could be configured within Azure to be able to approve this - or any other - application for all of their users.


Grant tenant-wide admin consent to an application - Azure AD | Microsoft Docs