Admin approval screen keeps showing up

JO-5324 61 Reputation points

I have created a public web application which uses the MS Graph API.
The following permissions are needed: Mail.ReadWrite.Shared, Mail.Send.Shared, MailboxSettings.Read, offline_access, User.Read
Supported account types: Accounts in any organizational directory and personal Microsoft accounts

Some of my users are required to get admin approval, but even after receiving an approval they say they are still seeing the message that an approval is required.
See screenshots attached.

I have already checked if there are any Microsoft Azure settings which I need to enable / activate, but in vain.

Does anyone know the cause for this issue and how to solve it?


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,848 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,027 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,838 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 37,786 Reputation points

    Hi @JO-5324

    You may have specified the prompt=consent parameter in the authentication URL, which will cause the admin consent page to trigger every time you log in to the user, you just need to delete this parameter.{tenant id}/oauth2/v2.0/authorize?  
    client_id={client id}  
    &redirect_uri={redirect url}  
    &scope=Mail.ReadWrite.Shared Mail.Send.Shared MailboxSettings.Read offline_access User.Read  
    &prompt=consent (delete this parameter)  

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.