Insufficient privileges to complete the operation V1.0

Carolina Nino 21 Reputation points
2021-12-15T13:15:23.123+00:00

Hello everyone: At the moment I have the same problem of Insufficient privileges to complete the operation, but I have reviewed and added the permissions, I attach the image. I am using the endpoint of creating users and updating. Could you tell me if I need any other permission? What I can do is make get but not the post and patch

Base URL: https://graph.microsoft.com/v1.0/users
body
{
"passwordPolicies": "string",
"State": "string",
"mailNickName": "string",
"passwordProfile": {
"password": "string"
},
"userPrincipalName": "string",
"givenName": "string",
"mail": "string",
"accountEnabled": "string",
"city": "string",
"country": "string",
"department": "string",
"displayName": "string",
"faxNumber": "string",
"surname": "string",
"mobilePhone": "string",
"officeLocation": "string",
"businessPhones": "string",
"postalCode": "string",
"streetAddress": "string",
"jobTitle": "string",
"usageLocation": "string",
"preferredLanguage": "string"
}

Thanks for your help
157905-permissions1.png

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

Accepted answer
  1. CarlZhao-MSFT 37,456 Reputation points
    2021-12-16T01:51:29.263+00:00

    Hi @Carolina Nino

    When creating or updating a user, please make sure that the user you log in is at least granted the role of user administrator, and the logged in user cannot be a personal Microsoft account.
    158101-image.png
    158082-image.png
    158039-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful