Share via

Unable to update user using MS Graph API

Nhat Le 1 Reputation point
2020-08-04T15:48:33.673+00:00

I am working on a project to update mobilePhone number for all employee in the company.
I follow this documentation to update user object https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http
I added all required Delegated Permissions with Admin Consent. However, the API responses an error message: "Insufficient privileges to complete the operation"
Could you please help me out? Thank you.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,551 Reputation points Moderator
    2020-08-04T20:54:17.277+00:00

    Please assign the user to any role that contains the microsoft.directory/users/password/update permission (EG: Password administrator) and try again. This will allow to update the mobilePhone number of non-admin users or users assigned to one of the following roles: Directory Readers, Guest Inviter, Message Center Reader, and Reports Reader. Admin users mobilePhone number can only be updated by themselves.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.