In a cloud environment, you can change your display language on Microsoft 365 (https://www.office.com) when you click on the gear icon on the top right of the page, and then selecting “Change your language”.
For users in a Hybrid environment, the possibility to chose the display language is greyed out.
In order to change the Display language, the user needs to contact the administrator of his organisation, which can then change the language to the prefered language in Active Directory.
The administrator needs to change the attribute “preferredLanguage” to the prefered language code under the users properties (Attribute Editor), in Active Directory Users and Computers.
After setting this value to the prefered value, it will take some time before this value is synced to Azure Active Directory, and take effect for the user in Office.com.
To speed up this proces, you can trigger a Delta sync from the server which contains the “Azure AD Connect” application.
Open a elevated Powershell Prompt on that machine, and type in the following code:
Start-ADSyncSyncCycle -PolicyType Delta
Once the sync is completed, you should see the same value as you set under “preferedLanguage” in the properties of the user in Active Directory, appear in the Azure Active Directory admin center in “Overview” – “Properties”:
Next time the user in question logs in on Office.com, the language should be changed to the set value.
I had to make a bulk update of data for a list of users, and instead of opening each user profile one by one and changing the values, I decided to write a script which could do this in bulk for me. It saved me a lot of time and avoided typing and other user errors. I only needed to make sure the input csv was set up correctly.
I started of with an export of all necessary fields from the Active directory, made this a bit more readable for the people responsible for determining the data which needs to be updated, and provided the file to them for correction of the data. When I received the file back, I made sure all necessary data was filled in, generated the necessary codes for the countries, and generate the .csv file this script needs to make the updates.
This script loads in the .csv file and loops over all users in the file and updates the necessary fields.
The titles in the .csv file are the names used in AD. You can look these up in the “Attribute Editor” tab.
For the Country details:
“c” = 2-character ISO-3166 country code (ex.: BE)
“co” = the name of the country as a text string (ex.: Belgium)
“countryCode” = the country code for the user’s language of choice (ex.: 56)
In this script I only changed a couple of fields, as more where not required in this case. I also just cleared some attributes, without replacing them. You should be able to edit the code based on this example in case you need to edit more attributes.