Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
322 stars 54 forks source link

Some users get `insufficient privileges to complete the operation.` with GetRoles #699

Open rhalaly opened 2 years ago

rhalaly commented 2 years ago

Describe the bug

Following this tutorial: https://docs.microsoft.com/en-us/azure/static-web-apps/assign-roles-microsoft-graph Some users get insufficient privileges to complete the operation. when calling Microsoft Graph.

To Reproduce Steps to reproduce the behavior:

  1. Follow the tutorial
  2. Login with several users
  3. Some of them will throw insufficient privileges to complete the operation. when calling Microsoft Graph.

Code was forked from: https://github.com/staticwebdev/roles-function

Expected behavior It will work for all the users

Screenshots

image

Device info (if applicable):

Additional context

rhalaly commented 2 years ago

@anthonychu can you assist, please?

Roger-T-Sa commented 1 year ago

Solution here: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1234