Some users get `insufficient privileges to complete the operation.` with GetRoles
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**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**

**Device info (if applicable):**
- OS: Windows 11/10, Mac
- Browser Edge
- Version 90
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.