Got the answer. It needed User Administrator role assigned!
Update User Password Profile API - Insufficient Privileges Error
Hi,
I'm trying to update User Password Profile using the https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http&source=docs
I've provided the authenticating AD App, with Application type permission for: User.EnableDisableAccount.All, User.ReadWrite.All, Directory.ReadWrite.All.
However, I keep getting Insufficient Privileges permission. Please note, I do use the same authenticating app for User creation too.
Appreciate your help here!
2 answers
Sort by: Most helpful
-
-
CarlZhao-MSFT 45,841 Reputation points
2024-03-11T09:04:10.1266667+00:00 Yes, the logged in user or application must have the User Administrator role to change another user's password. If you want to change the password of an administrator user, the logged-in user or application must have the Global Administrator role.
Have the same problem here.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.