MP.CLT.UA.1022 User cities are on the approved list.
Checks that every city set on enabled member users is one of your approved values. Blank values are not checked here (the presence tests check those).
City is used by location-based dynamic groups, regional policies and reports. NYC, New York City and New York are three different cities to every rule that compares them.
The approved values come from city in CLT.UA.AllowedValues under GlobalSettings in maester-config.json (approved office locations count too), from the file named in CLT.UA.AllowedValuesFile, or from this test's own AllowedValues, which replaces the shared list for this test only. Until any are set, this test lists the values it finds and asks you to review them (Investigate) instead of failing.
Remediation action
Review the values listed below and decide which are correct.
Add the approved values to
maester-config.json:{ "GlobalSettings": { "CLT.UA.AllowedValues": { "city": ["Seattle", "New York"] } } }Change the users with a value that is not approved, in the Microsoft Entra admin center (Entra ID > Users > the user > Edit properties > Contact info > City) or with PowerShell:
Update-MgUser -UserId <UPN> -City 'Seattle'.For users synced from Active Directory or provisioned from an HR system, fix the value at the source (
l (City)in AD), because changes made in Microsoft Entra ID are overwritten at the next sync.If a value is correct but not listed, add it to the approved values rather than changing the user.
Related links
%TestResult%