Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

User non-standard primary group count should be retrievable

AD-USER-12InfoActive DirectoryUsers

Part of Active Directory · Active Directory · Users · All checks

Run this check
Invoke-Maester -TestId AD-USER-12

Most user accounts use PrimaryGroupId = 513, which corresponds to Domain Users. When a user has a different primary group, the configuration is often intentional but uncommon.

  • Privilege review: Non-standard primary groups can indicate elevated or specialized access models
  • Migration residue: Legacy migrations and scripted provisioning may leave unusual values behind
  • Access clarity: Atypical primary groups make account analysis more complex

Detective

  • Review users whose PrimaryGroupId is not 513
  • Confirm the configuration is required and documented
  • Standardize primary groups where there is no operational reason for deviation

This test counts user objects where primaryGroupId is populated and not equal to 513.

  • Test-MtAdUserAdminCountCount - Highlights protected or privileged accounts
  • Test-MtAdUserSidHistoryCount - Identifies migration-related account artifacts
Every attribute of this check
FieldValue
Test IDAD-USER-12
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureUsers
AreaIdentity lifecycle and hygiene
Resource typeUser
MITRE ATT&CKNone
PowerShell testTest-MtAdUserNonStandardPrimaryGroupCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:user:ReadProperty