HighBinary packFree

AD User Attributes

Checks that Active Directory users have the attributes HR processes, Entra Connect sync and address books depend on, that those values are formatted consistently, and that they use your approved values and office locations.

Version
0.3.2
Tests
25
Connectors
1
Published
9 Nov 2026

DevClate · devclate.ad-user-attributes · 0 stars · Open source · MIT

PowerShell
Install-MtPack DevClate/maester-pack-adua

Install only packs from sources you trust. This pack is made by DevClate, not by Maester. The site only indexes and scans it: Install-MtPack downloads it straight from github.com/DevClate/maester-pack-adua.

maester-packs.lock.json entry
{  "Id": "devclate.ad-user-attributes",  "Source": "DevClate/maester-pack-adua",  "Version": "0.3.2",  "Commit": "33e16c74cae035b3068786259858c0d71bfb2272",  "Digest": "sha256:7f38679dcfc7e7044b9b10fe36ad7ba32a1f3e34c026f48f49db2979f22b4a1a"}

← All tests

MP.CLT.ADUA.1013 Active Directory name, job and location attributes have no stray spaces.

Severity: LowCLT.ADUA.Ldap

Checks that name, job and location attributes of enabled Active Directory users have no leading or trailing spaces, repeated spaces, tabs, line breaks or invisible characters (such as a non-breaking or zero-width space). Use the Attributes parameter to choose which attributes are checked.

These characters usually arrive by copying from email, spreadsheets or HR exports. Finance and Finance look identical but are different values, so dynamic groups, approved-value checks and address-book sorting treat the user as different from everyone else. In the results, each space is shown as ␣.

Remediation action

  1. Retype each value listed below, or trim it with PowerShell: Set-ADUser -Identity <sAMAccountName> -Department ((Get-ADUser <sAMAccountName> -Properties department).department.Trim()).
  2. For invisible characters, delete and retype the whole value rather than editing it, because the character cannot be seen.
  3. If the values come from an HR export or a provisioning tool, trim them there too, or the next import brings them back.

Related links

%TestResult%