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://video2.skills-academy.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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,079 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 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.

    0 comments No comments

Your answer

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