I’m attempting to get MemberOf values for an AD user object. However, I’m hitting some roadblocks wherein I am not able to get an absolute list of AD group memberships (MemberOf) for a given AD user.
- I get most MemberOf AD Groups when I query
Get-ADUser
with-Server
value set to the user object’s domain DC/GC - Remaining, I’m only able to retrieve if I separately query for the same user object under the Root/Parent domain DC/GC
Below, based on my validation, I’ve jotted down the possible values for the PowerShell Get-ADUser
cmdlet’s -Server
parameter.
PowerShell Get-ADUser “Server” parameter value options based on MemberOf Group’s Scope
MemberOf a Universal group,
- User domain DC/GC
- Root/Parent domain GC
- Other domains GC in the same forest
MemberOf a Global group,
- User domain DC/GC
MemberOf a Domain-local group,
- Group domain GC
- Root/Parent domain GC
Now, my question goes, is my above deduction valid, and if yes is it by design - a thumb rule based on how the AD group memberships are designed to work?, or, is it more of a DC replication configuration thing?
Any advice is highly appreciated.