Azure / Azure/static-web-apps

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

Open
#699 2 comments 0 reactions 0 assignees View on GitHub
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**
image

**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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.