Graph API Permissions

Emile Dawkins 1 Reputation point

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=\"\" xmlns:xsi=\"\" xmlns=\"\"><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.
11,413 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Emile Dawkins 1 Reputation point


    The API they are using is below along with the tenant ID:{tenantid}/users?api-version=1.6

    Tenant ID :

    0 comments No comments

  2. Emile Dawkins 1 Reputation point

    Here is the error:


    0 comments No comments

  3. Danstan Onyango 3,816 Reputation points Microsoft Employee

    I see that you are trying to consume{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