LowScript packFree

User Attributes

Checks that Microsoft Entra users have the attributes HR processes, dynamic groups and licensing depend on, that those values are formatted consistently, and that they use your approved values and office locations.

Version
0.5.0
Tests
26
Connectors
0
Published
5 Nov 2026

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

PowerShell
Install-MtPack DevClate/maester-pack-ua

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-ua.

maester-packs.lock.json entry
{  "Id": "devclate.user-attributes",  "Source": "DevClate/maester-pack-ua",  "Version": "0.5.0",  "Commit": "b517a31d37e07d9c9cb11bf6bf582eaec603ac4d",  "Digest": "sha256:d8b91b6f76225c01279e09ba6b104e5f32e9fdcdbd4f344bfb8d6b2bddeeef92"}

← All tests

MP.CLT.UA.1012 User name, job and location attributes have no stray spaces.

Severity: LowGraph

Checks user name, job and location attributes for white space that should not be there: a leading or trailing space, two or more spaces in a row, a tab or line break, or an invisible character such as a non-breaking or zero-width space.

These mistakes are invisible in the admin center and the profile card, but they break anything that compares values exactly. A dynamic group rule user.department -eq "Finance" does not match "Finance ", so the user silently loses the access the group grants. Search, sorting, the address book and matching with HR or ITSM systems are affected in the same way. Invisible characters usually come from copying values out of a spreadsheet, email or web page.

Remediation action

  1. Review the values listed below. In the Value column, ␣ marks each space, and invisible characters are shown as [invisible].
  2. Retype the value, or trim it with PowerShell: Update-MgUser -UserId <UPN> -Department 'Finance'.
  3. For users synced from Active Directory or provisioned from an HR system, fix the value at the source; changes made in Microsoft Entra ID are overwritten at the next sync.
  4. To stop it recurring, clean values where they enter: in the HR system, in your provisioning attribute mappings, or in the script that creates users (for example $value.Trim() -replace ' {2,}', ' ').

Related links

%TestResult%