Disable approval required consent in Azure

Celigo Labs 41 Reputation points
2021-10-12T03:30:56.127+00:00

When an end-user is accessing their organization data by using my Azure OAuth APP, they are being asked for admin approval, the consent shows the message as "Approval Required", Can anyone will help me out on how to solve this issue so that end-user will not be asked for the admin approval?

Authorization URL we used to authenticate the end-user:-
https://login.microsoftonline.com/common/oauth2/authorize
?response_type=code&state={{state}}&redirect_uri={{redirect_uri}}&client_id={{client_id}}&resource={{resource}}

139658-admin-consent.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,458 questions
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,306 Reputation points
    2021-10-12T08:12:27.773+00:00

    Hi @Celigo Labs • Thank you for reaching out.

    In order to avoid the Approval Required page for end users, you need to construct adminconsent url as mentioned below:

    https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id

    Access this URL using global administrator account of your tenant and accept the consent prompt.

    Once this is done, when any user in your tenant, accesses the application using below call, they will not get the Approval Required page.

    https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&state={ {state}}&redirect_uri={ {redirect_uri}}&client_id={ {client_id}}&resource={ {resource}}

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


1 additional answer

Sort by: Most helpful
  1. Marc Hornung 121 Reputation points
    2023-06-15T15:40:38.5466667+00:00

    How can this be permanently disabled?

    0 comments No comments