Change Office 365 portal language for synced users

Users cannot change the display language of the Office 365 portal themselves if they are synced users, and they’ll receive an error. If you attempt to do this as an administrator using a Powershell command to set the PreferredLanguage attribute directly like this:

set-msoluser -userprincipalname "xxx" -PreferredLanguage "en-US"

You will see this error:

set-msoluser : Unable to update parameter. Parameter name: PreferredLanguage.
At line:1 char:1
+ set-msoluser -userprincipalname xxx -preferredlanguage "en-US"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo          : OperationStopped: (:) [Set-MsolUser], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyNotSettableException,Microsoft.Online.Administration.Automation.SetUser

You can only set the PreferredLanguage attribute on non-synced users because this property is managed by dirsync/aadsync, and thus only settable on your onpremises Active Directory. Use ADSIEdit or Powershell to change the PreferredLanguage property locally for your users and then run a sync to change the language in Office 365.

Here’s an example PS snippetĀ that will set (bulk change) the preferredLanguage Active Directory atrribute of all your users to Dutch:

Get-AdUser -Filter * -ResultSetSize 9999 | Set-ADUser -Replace @{‘preferredLanguage’=”nl-NL”}

If you need to look up your own language code, you can do so here

Note: if the PreferredLanguage attribute is not set, language will default to English.

8
Leave a Reply

avatar
6 Comment threads
2 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
7 Comment authors
JosCarolEdwinEduardoMarkus Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
Eduardo
Guest
RDEAN
Guest
RDEAN

Thank you Jos. Not easy to find documentation for this issue

Carol
Guest
Carol

Hi Jos – do you know if this is still the case in May 2018?

Edwin
Guest
Edwin

Unbelievable that this is nowhere to be found on TechNet or docs.microsoft.com, been searching for this for quite some time. Strangely enough my home pc display language is English and my work VDI display language is Dutch, when simultaneous logged in. So there has to be a IE setting as well.

Markus
Guest
Markus

excellent – thanks a lot, been searching for that quite a while!

Marius
Guest
Marius

looks like default language can vary depending on what was set initially on the tenant.