Microsoft Entra ID Permissions
For permissions:
-
In the navigation pane to the left, click API permissions.
-
Click Microsoft Graph, and in the opened pane select Application permissions.
-
Add the following permissions:
-
GroupMember.Read.All
-
User.Read.All
-
-
Grant all the above-mentioned permissions.