An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi I can use Update-MgUser locally, would you mind more details to help us better solve your problem?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Attempting to update a field (About Me) in an Azure AD user account. I've created an app, attached a certificate and assigned the API permission "Directory.ReadWrite.All". I am able to successfully connect to Graph, read user data, just not update anything, I get the error when running the Update-MgUser command "Attempted to perform an unauthorized operation."
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi I can use Update-MgUser locally, would you mind more details to help us better solve your problem?
Hi @Anhvariel
I was able to replicate the same issue. Please Consent Sites.readwrite.all application permission before running this Graph API endpoint. After adding this permission, I got desired result.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.