App using only delegated permissions requires admin approval

Sean Burke 26 Reputation points
2022-10-28T22:29:01.727+00:00

I have an application configured as a desktop client for both AD and personal accounts with IMAP.AccessAsUser.All, POP.AccessAsUser.All, SMTP.Send, and offline_access permissions. All of these are delegated permissions listed as not requiring admin consent. However, a user with an AD account has attempted to sign in and has received a screen with the message "Need admin approval", saying that the app "needs permission to access resources in your organization that only an admin can grant". Is this correct? Can organizations require that applications be approved even when none of the requested permissions should require it?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Bhanu Kiran 3,526 Reputation points
    2022-10-28T23:02:01.977+00:00

    Hi @Sean Burke ,

    App-only permissions always require a tenant administrator’s consent. If your application requests an app-only permission and a user tries to sign in to the application, an error message is displayed saying the user isn’t able to consent.

    Certain delegated permissions also require a tenant administrator’s consent.

    Please refer to this document for more information.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  2. Rob Windsor 1,956 Reputation points
    2022-10-29T02:21:52.11+00:00

    Can organizations require that applications be approved even when none of the requested permissions should require it? It appears they can. I'm not sure this is causing the issue in your case but it's something you could investigate.

    https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent?tabs=azure-portal&pivots=portal#configure-user-consent-settings

    255227-image.png

    0 comments No comments

  3. Vasil Michev 95,836 Reputation points MVP
    2022-10-29T07:54:08.45+00:00

    Is your app publisher verified? By default requests from non-verified multi-tenant apps are put in the "risky" bin and will require admin consent: https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/configure-risk-based-step-up-consent

    0 comments No comments