I created the application at https://apps.dev.microsoft.com (Platforms: Web)
This application requires administrator consent for certain permissions. I remember in the past access to https://login.microsoftonline.com/{tenant name}/adminconsent?client_id={application id}&state={some state data}&redirect_uri={redirect uri} with an administrator account to give permission to access resources in our organization, which can only be provided by the administrator. From there, users had to give consent at the user level to use the application.
Now I can successfully log in with the administrator account and the application works as expected, but I still get an invitation for users with the following message:
You can't access this application APP NAME needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.
Have an admin account? Sign in with that account
Return to the application without granting consent
Error message: AADSTS90094: The grant requires admin permission. which is not documented anywhere.
Should I click on Have an admin account? Sign in with that account Have an admin account? Sign in with that account and log in with an administrator account, it works, but tries again with a regular user account. I get the above message again.

EDIT: So I split permissions to a minimum. Areas in my application now: openid , profile , user.read Now permissions for Microsoft Graph are allowed for delegated permissions: Mail.Send , user.read . Nothing in application permissions, and I STILL get the above message for regular users! Does any of Microsoft have some information about the error code AADSTS90094?
php azure office365 azure-active-directory microsoft-graph
katalin_2003
source share