Does a call to "{tenant}/v2.0/adminconsent?client_id=

GM 136 Reputation points

Consider the have the following scenario:

  • SaaS service uses a multi-tenant Azure AD app to access resources located in the M365 tenant of the service customers
  • When onboarding a new account, the service explicitly request admin consent for our app (using variant of `{customer_tenant_id}/v2.0/adminconsent?client_id=
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,576 questions
{count} votes

Accepted answer
  1. Vasil Michev 97,231 Reputation points MVP

    Yes, querying the /adminconsent endpoint will always result in triggering the consent dialog. If you want to check the current consent state, obtain an access token and check the scopes/roles therein. Only then, if needed, trigger a request against the /adminconsent endpoint.
    Refer to this article for more info:

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. GM 136 Reputation points

    Thank you @Vasil Michev . Your suggestion will work great!

    0 comments No comments