How to view, set, and manage the preferredLanguage attribute in Active Directory

Last updated on:

The preferredLanguage attribute records the written or spoken language a person prefers. It comes from the inetOrgPerson LDAP object class defined in RFC 2798, and Active Directory adopted it with the Windows Server 2003 schema. The value is a single language tag such as en-US, and applications such asExchange and Microsoft 365 read it to present content in the preferred language for each user.

This guide covers the attribute end to end: what it stores and where it came from, its exact schema definition, and three ways to work with it. It explains setting and clearing the value in Active Directory Users and Computers (ADUC), reading and bulk-updating it with PowerShell, and configuring, reporting on, and delegating it in ManageEngine ADManager Plus.

preferredLanguage at a glance

LDAP display name preferredLanguage
CN preferredLanguage
Syntax String(Unicode), 2.5.5.12
OM-Syntax 64
Attribute ID (OID) 2.16.840.1.113730.3.1.39
System ID GUID 856be0d0-18e7-46e1-8f5f-7ee4d9020e0d
Single- or multi-valued Single-valued
Indexed No
In Global Catalog No
Replicated Yes (normal domain replication; not to the Global Catalog)
Visible in default ADUC UI No (Advanced Features and the Attribute Editor are required)
Applies to user, inetOrgPerson
Source schema Windows Server 2003 (from RFC 2798 inetOrgPerson)
Microsoft reference Win32 ADSchema | MS-ADLS

Note: The attribute is single-valued, but per RFC 2798 the value follows the Accept-Language format, so a single string can express a prioritized list of languages with quality values, for example en-US, fr;q=0.7. Active Directory stores the string as-is and does not validate the tag, so a malformed value is accepted by the directory and simply ignored by the applications that read it.

What preferredLanguage is used for

Originating in the inetOrgPerson class, preferredLanguage was designed to let LDAP-aware applications localize their output per user. The value is an IETF language tag (RFC 1766 and its successors, now BCP 47) such as en-US for English (United States) or fr-FR for French (France).

Common real-world uses include:

  • Microsoft 365 provisioning: Setting the tag before or during sync helps present the correct default language to a new cloud user.
  • Microsoft Entra ID synchronization: Microsoft Entra Connect includes preferredLanguage in its default set of synchronized user attributes, so the on-premises value can flow to the cloud account.
  • Line-of-business application localization: Intranet and directory-integrated apps read the tag to choose a user's interface language.
  • Directory interoperability: Because it is a standard inetOrgPerson attribute, it maps cleanly to other LDAP directories during migrations and integrations.

Use preferredLanguage when you need a standards-based language preference that existing Microsoft and third-party tools already understand. Extend the schema with a custom attribute only if you need to store something the standard tag cannot express, such as an internal language code that does not follow BCP 47.

  • ADUC
  • PowerShell
  • ADManager Plus
  • FAQ
 

How to manage preferredLanguage using ADUC

The attribute is not shown on the standard property tabs, so use the Attribute Editor. Because the value is a plain string, you can type it directly.

  1. From the ADUC menu, select View > Advanced Features. This unlocks the Attribute Editor tab.
  2. Right-click the user and select Properties. Select the Attribute Editor tab.
  3. Select preferredLanguage and click Edit. Type the language tag, for example en-US, and click OK twice to commit.
  4. To change the value, open the editor, replace the string with the new tag, and click OK.
  5. To clear the attribute entirely, open the editor, delete the string so the field reads <not set>, and click OK.

Limitations of ADUC

  • One object at a time: Each user must be edited individually; there is no bulk path in ADUC.
  • No input validation: The Attribute Editor accepts any string, so a mistyped tag is saved without warning.
  • Advanced Features required: The attribute is hidden until Advanced Features is enabled, which is easy to overlook.
  • No reporting or scheduling: ADUC cannot export language settings across accounts or apply them on a schedule.

How to manage preferredLanguage using PowerShell

The Active Directory module cmdlets Get-ADUser and Set-ADUser handle this attribute. There is no dedicated parameter, so use -Replace, -Clear, and -Properties with the LDAP name.

View the current value

Get-ADUser -Identity jdoe -Properties preferredLanguage |
Select-Object Name, preferredLanguage

Displays the current language tag stored on the user jdoe.

Set a value

Set-ADUser -Identity jdoe -Replace @{ preferredLanguage = "en-US" }

Sets or overwrites the language tag for jdoe to en-US.

Clear the attribute

Set-ADUser -Identity jdoe -Clear preferredLanguage

Removes the stored language tag from the user jdoe.

Bulk update from CSV

Import-Csv -Path "C:\Data\PreferredLanguage.csv" | ForEach-Object {
Set-ADUser -Identity $_.SamAccountName -Replace @{ preferredLanguage = $_.PreferredLanguage }
}

Reads a CSV with SamAccountName and PreferredLanguage columns and applies the tag to each listed user.

Report on values

Get-ADUser -Filter * -Properties preferredLanguage |
Select-Object SamAccountName, Name, preferredLanguage |
Export-Csv -Path "C:\Reports\PreferredLanguage.csv" -NoTypeInformation

Exports the language tag for every user to a CSV for review or auditing.

Common PowerShell errors

  • Attribute not returned: The value is absent from output unless you request it with -Properties preferredLanguage.
  • Cannot use -Add on a single-valued attribute: Use -Replace to change the value; -Add fails because the attribute holds only one value.
  • Value accepted but ignored: Active Directory does not validate the tag, so a typo like en_US saves successfully yet has no effect in consuming applications.

Limitations of PowerShell

  • Scripting knowledge required: Bulk changes and reports assume familiarity with the Active Directory module.
  • No native delegation: Giving help desk staff limited access to run only the required commands on specific users requires building and securing wrapper scripts.
  • No built-in audit trail: Changes are not logged to a reviewable history without added transcription or logging.
  • No format enforcement: PowerShell will not stop an invalid language tag from being written.

How to manage preferredLanguage using ADManager Plus

ADManager Plus does not surface preferredLanguage on its standard user property screens, so configure it as a custom LDAP attribute first. After that you can set it during creation, update it in bulk, report on it, and delegate it from one console.

Configure the preferredLanguage attribute as a custom attribute

  1. Log in to ADManager Plus.
  2. Navigate to Admin > Custom Settings > LDAP Attributes.
  3. Click + Add Attribute.
  4. Enter preferredLanguage in the LDAP Name field.
  5. Enter a display label such as Preferred Language in the Display Name field.
  6. Select Unicode String as the Data Type.
  7. Under Associated Reports, map it to User and Computer reports.
  8. Map the Associated Reports and Associated Management actions.
  9. Click Add to save the configuration.
Adding preferredLanguage as a custom attribute in ADManager Plus.

Set or update for a single user

  1. Navigate to Management > User Management > Modify Single User.
  2. Search for and select the user account.
  3. Scroll to the Custom Attributes tab and locate Preferred Language.
  4. Enter the language tag, for example, en-US.
  5. Click Update User to apply.

Bulk update via CSV

Using a CSV file, ADManager Plus enables you to update attributes for multiple users at scale. Supply a CSV keyed on sAMAccountName and map the configured attribute in the template.

  1. Navigate to Management > Bulk User Modification > Custom Attributes.
  2. Enter preferredLanguage in the LDAP Name field.
  3. Set Data Type to Unicode String.
  4. Enter the language tag, for example, en-US in the Value field.
  5. Under Show Users List, select the domain and OU scope, then select CSV Import.
  6. Upload a CSV containing the sAMAccountName values of the accounts to update.
  7. Click Search, review the matched users, then click Apply.
Bulk updating the preferredLanguage attribute via CSV import in ADManager Plus.

Report on values

Build a report that includes the Preferred Language attribute to list the language tag for every user. Schedule it and export in CSV, PDF, HTML, or XLSX to audit language coverage across the organization.

  1. Navigate to Reports > Custom Reports and click + New Custom Report.
  2. Select User as the object type.
  3. Add Preferred Language, sAMAccountName, and Password Last Set as columns.
  4. Optionally, apply a filter for accounts with SPNs set.
  5. Save and schedule the report for automated delivery.

Delegate preferredLanguage management to non-admins

To allow security team members or non-admin users to view and update attributes without broader AD write access, use help desk delegation:

  1. Navigate to Delegation > Help Desk Roles and click + Create New Role.
  2. Enter a Role Name and Description.
  3. Under User Attribute Privileges, select Preferred Language for both read and write access.
  4. Save the role and assign it to the operator, scoped to the relevant OU.

Security and access considerations

This attribute uses standard default ACLs (schema default security descriptor O:BAG:BAD:S:). It is not flagged confidential, so authenticated users can read it like other general user properties, and write access follows the normal Active Directory delegation model. There are no unusual read restrictions to plan around.

To control who can change the value:

  • At the OU level: Use the Delegation of Control Wizard or ADSI Edit to grant write access to preferredLanguage only where it is needed.
  • Via PowerShell: Apply an explicit ACE with dsacls, for example dsacls "OU=Staff,DC=corp,DC=com" /G "CORP\HelpDesk:WP;preferredLanguage", to grant write-property rights.
  • In ADManager Plus: Use role-based help desk delegation so operators can edit the attribute within assigned OUs without receiving broad directory rights.

Because the value can affect the language a user sees in Exchange, Microsoft 365, and internal apps, treat mass changes with the same care as any user-facing setting: stage them, validate the tags, and communicate the change.

Troubleshooting

Language does not change after setting preferredLanguage

The attribute only expresses a preference; each consuming application decides whether and when to honor it. Confirm the tag is valid (for example en-US, not en_US), that the value replicated, and that the application in question actually reads the attribute.

preferredLanguage does not appear in ADUC

It is not shown on the standard tabs. Enable View > Advanced Features and open the Attribute Editor tab to see and edit it.

Incorrect preferredLanguage value format

Use a BCP 47 language tag: a two-letter language code, optionally followed by a region, such as en, en-US, or fr-FR. RFC 2798 also allows a prioritized list in Accept-Language form.

preferredLanguage synchronization with Microsoft Entra ID

preferredLanguage is part of the default attribute set that Microsoft Entra Connect synchronizes, so the on-premises value flows to the corresponding cloud user unless you have customized the sync rules.

Using multiple language preferences

The attribute is single-valued, but the string may carry a ranked list per the Accept-Language format, for example en-US, es;q=0.8. Whether an application honors the ranking depends on the application.

Related attributes

  • localeID: Stores the user's locale as a numeric locale identifier (LCID), a Windows-native counterpart to the standards-based language tag in preferredLanguage.
  • countryCode: Holds the numeric ISO 3166 country code for the user, often set alongside language to drive regional formatting.
  • c (Country-Name): The two-letter ISO 3166 country abbreviation for the user, another inetOrgPerson-derived localization attribute.

Manage preferredLanguage and every other AD attribute from one console

ADManager Plus lets you set, bulk-update, report on, and delegate the preferredLanguage attribute without writing scripts, so keeping user language preferences accurate across Active Directory becomes a point-and-click task your help desk can own.

Frequently asked questions (FAQs)

It uses the String(Unicode) syntax (2.5.5.12, OM-Syntax 64) and is single-valued.

The user and inetOrgPerson classes.

No. It replicates within the domain but is not in the Global Catalog, and it is not indexed.

It was introduced with the Windows Server 2003 schema, based on the RFC 2798 inetOrgPerson definition, and is present in later versions.

The OID 2.16.840.1.113730.3.1.39 is from the inetOrgPerson schema, not the Microsoft 1.2.840.113556 arc, reflecting its LDAP-standard origin.

Manage preferredLanguage and any AD attribute at scale with ADManager Plus

The one-stop solution to Active Directory Management and Reporting
Email Download Link Email the ADManager Plus download link