I am trying to use Microsoft Graph API V2.0 to access user's OneNote Notebooks.
I am trying to authorize via OAuth using the follow link sample:
https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize?
response_type=code
&client_id={id}
&redirect_uri={url}
&scope=Notes.Read%20offline_access
&state={state}
When I login with a work account I get a message saying that:
{app_name} needs permission to access resources in your organisation that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.
And:
Message: AADSTS90094: The grant requires admin permission.
Using an admin account I have no problems.
From Notes permissions, none of Note scopes (i.e. Notes.Read
, Notes.ReadWrite
, Notes.Create
or Notes.ReadWriteAll
) require Admin Consent.
Is there any reason for this to request admin permissions?
apps.dev.microsoft.com
, depending on where you registered)? – Marc LaFleur