Share via

How to update preferredLanguage using Graph API?

Mali Swagat (BT) 1 Reputation point
2022-01-27T15:27:38.57+00:00

I'm able to retrieve my Azure AD user info making a call to https://graph.microsoft.com/v1.0/me and I can get properties like GivenName, Mail and strong text.

How to set/update preferredLanguage using Graph API? Where can I set the language of my user and get it calling the microsof graph?

Thank you

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Vasil Michev 126.5K Reputation points MVP Volunteer Moderator
    2022-01-27T15:44:25.323+00:00

    Issue a PATCH request against the /me (or /user/{userid} endpoint), with the following JSON payload:

    169050-image.png

    If performing this on behalf of another user, make sure you have Directory.AccessAsUser.All permissions.

    Was this answer helpful?


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.