Graph API Permissions

Emile Dawkins 1 Reputation point
2021-03-16T15:25:54.99+00:00

Hello, I am giving support to a client While creating an Azure user from backend the user is facing the below error <?xml version=\"1.0\" encoding=\"utf-8\"?><error xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><code>Authorization_RequestDenied</code><message xml:lang=\"en\">Insufficient privileges to complete the operation.</message></error>" I have delegated microsft graph permission User.Invite.All to the user but they still receive the same error? Please can anyone assist. Thank you!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Emile Dawkins 1 Reputation point
    2021-03-17T11:22:55.063+00:00

    @Danstan

    The API they are using is below along with the tenant ID:

    https://graph.windows.net/{tenantid}/users?api-version=1.6

    Tenant ID :
    adecc3d0-610d-4060-a865-615f7f48c411

    0 comments No comments

  2. Emile Dawkins 1 Reputation point
    2021-03-17T11:26:53.627+00:00

    Here is the error:

    78749-accessapi.jpg

    0 comments No comments

  3. Danstan Onyango 3,736 Reputation points Microsoft Employee
    2021-03-22T05:44:48.747+00:00

    I see that you are trying to consume https://graph.windows.net/{tenantid}/users?api-version=1.6 which is Azure AD Graph and not Microsoft Graph. User.Invite.All is an MS Graph permission. Check MS Graph Invitation docs and see if this is what you should be consuming.

    0 comments No comments