AD-GRP-08 - Domain local group count should be retrievable
Overviewโ
Domain local groups have specific characteristics that affect your security architecture:
- Domain boundary restriction: Can only be used to assign permissions to resources within the same domain
- Flexible membership: Can contain users, global groups, and universal groups from any domain in the forest
- Resource access control: Typically used to grant access to specific resources (file shares, printers, applications)
- AGDLP/AGUDLP strategy: Part of Microsoft's recommended group nesting strategy (Accounts go into Global groups, which go into Domain Local groups for Permissions)
High numbers of domain local groups may indicate resource-specific access patterns.
Security Recommendationโ
Follow Microsoft's AGDLP/AGUDLP best practices:
- Use domain local groups to assign permissions to resources in their domain
- Nest global or universal groups (containing users) into domain local groups
- Avoid adding individual users directly to domain local groups
- Name domain local groups according to their resource access purpose (e.g., "DL-FileServer01-Modify")
- Document all resources each domain local group provides access to
How the Test Worksโ
This test examines all group objects and identifies those where:
- The
GroupScopeproperty equals "DomainLocal" - These groups can only assign permissions to resources in their own domain
The test provides counts and percentages to understand the distribution of group scopes in your environment.
Related Testsโ
Test-MtAdGroupDistributionCount- Counts distribution groups (email-only)Test-MtAdGroupSecurityCount- Counts security groups by categoryTest-MtAdGroupGlobalCount- Counts global scope groupsTest-MtAdGroupUniversalCount- Counts universal scope groups
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-GRP-08 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Group |
| PowerShell test | Test-MtAdGroupDomainLocalCount |
| Tags | AD, AD-GRP-08, AD.Group |
Sourceโ
- Pester test:
tests/ad/group/Test-MtAdGroupDomainLocalCount.Tests.ps1 - PowerShell source:
powershell/public/ad/group/Test-MtAdGroupDomainLocalCount.ps1

