Admin consent is being raised for permissions which are not required admin consent

Copper Contributor

Hi,

 

We are integrating the microsoft graph to fetch the contacts of signed-in user through microsoft graph SDK but I one thing here is that we are using our implemented OAuth2.0 protocol for authentication in microsoft graph instead of Auth using given JS SDK with following permissions which are registered on Azure Active Directory

scope = offline_access Contacts.Read Contacts.Read.Shared

Problem : Admin consent should not be shown to user when registered permissions are not required admin consent.

1 Reply

@jkhan540 It is possible that the tenant you are testing your application has disabled user consent. It is actually documented as a best practice here: https://docs.microsoft.com/en-us/azure/security/fundamentals/steps-secure-identity#block-end-user-co...

 

If user consent is disabled then you will receive the same AADSTS90094 error which is documented here: https://blogs.msdn.microsoft.com/aaddevsup/2018/05/08/receiving-aadsts90094-the-grant-requires-admin...