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

Last updated on:

The carLicense attribute is a built-in user attribute in Active Directory (AD). It inherits from the inetOrgPerson schema (RFC 2798) and was originally defined to store a vehicle license or registration plate. In practice, it's often repurposed to hold any short license or ID-style value, such as driver's license numbers, parking permits, security badge IDs, and fleet assignments.

This article covers what carLicense is, where it lives in the schema, and how to manage it using three approaches: Active Directory Users and Computers (ADUC), PowerShell, and ADManager Plus.

carLicense attribute at a glance

Attribute Value
LDAP display name carLicense
CN carLicense
Syntax Win32 ADSchema renders this as String (Unicode) and MS-ADLS as attributeSyntax: 2.5.5.12
OM-Syntax 64
Attribute ID (OID) 2.16.840.1.113730.3.1.1
System ID GUID d4159c92-957d-4a87-8a67-8d2934e01649
Single- or multi-valued Multi-valued
Indexed No
In Global Catalog No
Replicated Yes, within the domain
Visible in default ADUC UI No, requires Attribute Editor
Applies to Windows Server 2003 and later;
Source schema inetOrgPerson (RFC 2798)
Microsoft reference Win32 ADSchema ยท MS-ADLS

Note: Although the attribute name suggests a single license, carLicense is multi-valued. A single user object can hold more than one value, and the attribute is useful when one person is associated with multiple vehicles, permits, or licenses.

What is the carLicense attribute used for?

carLicense was introduced as part of the inetOrgPerson schema (RFC 2798) to store a vehicle license or registration plate. Since AD inherits that schema, every AD user object includes the attribute out of the box.

In real-world deployments, organizations rarely use it for vehicle plates alone. Common repurposed uses include:

  • Driver's license number for users who operate company vehicles
  • Parking permit number for tenants of corporate parking
  • Fleet vehicle assignment in logistics and field-service teams
  • Generic license number for HR records

carLicense is a standard string attribute that ships with every AD schema, with no schema extension required. It's also multi-valued, which fits users who hold more than one entry.

If you need stricter naming or stricter access control, a custom schema extension is the cleaner path. carLicense is best used when the data is non-sensitive, you can tolerate the default-readable ACL, and you want zero schema changes.

  • PowerShell
  • ADUC
  • ADManager Plus
  • FAQ
 

How to manage carLicense using PowerShell

PowerShell is the right tool when you need to handle more than a few users at once, or when you want repeatable change records you can attach to a ticket or change request.

Add a value to the carLicense attribute

To add the carLicense attribute, use the Set-ADUser cmdlet along with the -Add parameter.

Set-ADUser -Identity john -Add @{carLicense="ZY-6543"}

The -Add parameter preserves any existing values and appends the new one. Use this when carLicense already has data you want to keep.

Replace all values

To replace the existing attribute value, use this command:

Set-ADUser -Identity john -Replace @{carLicense="ZY-6543"}

To replace with multiple values at once:

Set-ADUser -Identity john -Replace @{carLicense=@("ZY-6543","RT-5678")}

Remove a specific value

This command deletes only the specified value from the attribute. Any other carLicense values on the user object are preserved.

Set-ADUser -Identity john -Remove @{carLicense="ZY-6543"}

Report on carLicense values

This queries all users in the domain, filters to those with a carLicense value set, joins multiple values with semicolons for readability, and exports the result to a CSV file.
Get-ADUser -Filter * -Properties carLicense |
Where-Object { $_.carLicense } |
Select-Object Name, sAMAccountName, @{N='carLicense';E={$_.carLicense -join '; '}} |
Export-Csv .\carLicense-report.csv -NoTypeInformation

How to manage carLicense using ADUC

ADUC doesn't expose carLicense in the standard user properties tabs. To view or edit the value, you'll have to work through the Attribute Editor tab.

Step 1: Enable Advanced Features

  1. Open ADUC.
  2. From the menu bar, select View > Advanced Features.

This unlocks the Attribute Editor tab on user objects.

Step 2: Open the user's Attribute Editor

  1. Navigate to the user object.
  2. Right-click the user and select Properties.
  3. Select the Attribute Editor tab.
  4. Scroll to carLicense in the alphabetical list.

Step 3: Set a value

  1. Select carLicense and click Edit.
  2. In the multi-valued string editor, type the value and click Add.
  3. Click OK to close the editor, then OK to close the properties dialog.

Limitations of ADUC

  • No bulk operations: Each user object must be edited individually; ADUC provides no native capability for batch updates.
  • No audit trail: Attribute changes are not recorded by ADUC. Tracking who modified carLicense, when, and to what value requires a separate auditing solution.
  • No input validation: The Attribute Editor accepts any string value, including typos and malformed entries, without warning.
  • Limited delegation granularity: Write access can be delegated at the OU level, but restricting permissions to the carLicense attribute alone requires manual configuration of access control entries.

How to manage carLicense using ADManager Plus

ADManager Plus allows you to add carLicense as a field and manage it using templates, bulk imports, and delegated workflows without enabling Advanced Features or opening the Attribute Editor.

Configure the carLicense attribute as a custom attribute

  1. Log in to ADManager Plus.
  2. Navigate to Admin > LDAP Attributes.
  3. Click + Add Attribute.
  4. Enter carLicense in the LDAP Name field.
  5. Enter a display label in the Display Name field.
  6. Select Multivalue as the Data Type.
  7. Map the associated reports and management actions.
  8. Click Add to add the configuration.
Adding carLicense as a custom attribute in ADManager Plus.

Add for a single user

  1. Go to Management > User Management > Modify User.
  2. Search for and select the user.
  3. In the user properties screen, scroll to the Custom Attributes section. Click + Add Additional Attribute.
  4. Enter the Attribute Name and Attribute Value.
  5. Click OK and then Update User.

Bulk update via CSV

  1. Go to Management > User Management > Bulk User Modification > Modify User Attributes.
  2. Import a CSV containing the sAMAccountName and carLicense attributes.
  3. Map the CSV columns to AD attributes.
  4. Preview the changes, then apply.

Use this for joiner workflows, parking permit refresh cycles, or fleet reassignment.

Apply via user creation templates

If carLicense is part of your standard joiner provisioning, you can add it to a user creation template:

  1. Go to Management > User Creation Templates.
  2. Edit the relevant template.
  3. Add carLicense to the template's attribute set.

Report on carLicense values

ADManager Plus includes prebuilt user attribute reports, and you can build a custom one for carLicense:

  1. Go to Reports > Custom Report > Create Custom Report.
  2. Select User as the object type.
  3. Apply a filter using the carLicense attribute.
  4. Save and schedule the report.
  5. Go to Reports > Custom Reports > User Reports.
  6. Click the custom report you created and click OK.

Delegate carLicense management to non-admins

To delegate just carLicense updates to a parking administrator or security officer without giving them broader user-write access:

  1. Go to Delegation > Help Desk Roles.
  2. Create a new role.
  3. Enter a Role Name and Description.
  4. Click User Attribute Privileges and select the carLicense attribute.
  5. Save the role and assign it to the user or group, scoped to the relevant OU.

The delegated user signs in to ADManager Plus, sees only the carLicense field on the user object, and every change is logged in the audit trail.

FAQ

carLicense is multi-valued. A single user object can hold more than one carLicense entry.

No, carLicense is replicated within the domain. You can mark it for Global Catalog replication via the Schema MMC if your forest needs cross-domain visibility.

No, the LDAP name is fixed. You can change its display name in ADManager Plus, but the underlying LDAP attribute stays carLicense.

No, not by default. carLicense isn't in the standard Entra Connect attribute set, but you can add it as a custom directory extension if you need cloud visibility.

The attribute isn't indexed by default. For high-volume search use cases, indexing it via the Schema MMC will improve query performance, but at the cost of larger directory database size and slightly slower writes since the index must be maintained on each DC.

Manage carLicense 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