Share via

Problem with user consent

Labulle22 20 Reputation points
2023-05-24T08:47:54.7733333+00:00

Hi all,

My app uses several user delegated permissions among which 2 (ChannelMessage.Read.All & User.Read.All) have been granted by my organization's admins. I'm now checking the getting of the access token with a small Python script.

As long as my script only asks for the permissions that don't need admin approval, all is fine, the end user is displayed the consent prompt and if he accepts he gets an access token.

But as soon as my script asks for all permissions granted to my app (that is also those that need an admin approval), consent prompt is no longer displayed and a popup with error message "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." appears.

I don't understand this behavior because consent policy in my organization is:
Allow user consent for apps (All users can consent for any app to access the organization's data.

Could that be that despite the fact that in my organization all users can consent, they cannot consent for permissions ChannelMessage.Read.All and/or User.Read.All? Any way to check that in Azure portal (without admin role)?

Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.