最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure active directory - User consents to scopes not listed in app registration - Stack Overflow

programmeradmin1浏览0评论
  1. i as an admin created an microsoft entra app registration and did not add any delegated permissions like 'File.ReadWrite' to it

  2. i use delegated oauth2.0 with authorization code and user consent to authorize. i use scope 'File.ReadWrite' in the api request

  3. User A tries to authorize with scope 'File.ReadWrite' and sees the consent screen

  4. Even if the permission wasn't there added in the app registration, user was able to consent and it shows as granted by user in the User section of enterprise application

i didn't expect this to work, as admin cannot restrict the scopes its users can consent to

  1. i as an admin created an microsoft entra app registration and did not add any delegated permissions like 'File.ReadWrite' to it

  2. i use delegated oauth2.0 with authorization code and user consent to authorize. i use scope 'File.ReadWrite' in the api request

  3. User A tries to authorize with scope 'File.ReadWrite' and sees the consent screen

  4. Even if the permission wasn't there added in the app registration, user was able to consent and it shows as granted by user in the User section of enterprise application

i didn't expect this to work, as admin cannot restrict the scopes its users can consent to

Share Improve this question asked Feb 10 at 18:20 codexcodex 234 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

In Entra Apps we have two types of permissions... 1.> DELEGATED PERMISSIONS and 2> APPLICATION PERMISSIONS

For DELEGATED PERMISSIONS there are few permissions that require consent from admin ....these permissions have their field of "Admin consent required" as true/required...

Permissions that don't have consent from admin marked as true they get assigned automatically once the user goes through Oauth and gives his/her consent.

Hope this helps! Thank you.

发布评论

评论列表(0)

  1. 暂无评论