API Reference
Command
Get-ADXPrincipalGroupMembership
Gets group memberships (parent groups / memberOf) for the specified principal identities. Returns group parents (flattened by default) or the raw GroupParentResult.
Examples
Example 1: List parent groups for a user
Get-ADXPrincipalGroupMembership 'EVOTEC\\svc.veeam' | Select Name,DomainName,Nesting
Example 2: Return projected parent tree nodes
Get-ADXPrincipalGroupMembership 'EVOTEC\\svc.veeam' -AsTree -TreeDepth 4
Example 3: Return the raw parent result object
Get-ADXPrincipalGroupMembership 'EVOTEC\\svc.veeam' -Flatten:$false
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ADXPrincipalGroupMembership -Identity <string[]> [-AsTree] [-Credential <PSCredential>] [-Domain <string[]>] [-First <int>] [-Flatten] [-HideProcessed] [-IncludeTrustedDomains] [-MaxCacheSize <int>] [-MaxDepth <int>] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [-Server <string>] [-ShowAll] [-Skip <int>] [-TimeoutSeconds <int>] [-TreeDepth <int>] [<CommonParameters>]#Parameters
- Identity string[]
- Object identities (DN/SID/UPN/SAM).
- AsTree SwitchParameter
- Return projected parent-membership tree nodes instead of flattened parent entries.
- Credential PSCredential
- Optional credentials used for LDAP bind.
- Domain string[]
- Optional domain DNS names used when scoped identity resolution is requested.
- First int
- Returns at most the specified number of output records after -Skip.
- Flatten SwitchParameter
- Return flattened parents (default). When false, return GroupParentResult.
- HideProcessed SwitchParameter
- Hide repeated parent groups that were already expanded earlier in tree output.
- IncludeTrustedDomains SwitchParameter
- Includes trusted domains when using forest-based scopes for identity resolution.
- MaxCacheSize int
- Maximum cache size used by resolver.
- MaxDepth int
- Maximum recursion depth.
- Scope DirectoryScenarioScope
- Default scope used for identity resolution when -Domain is not provided. Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
- Possible values:
CurrentDomain,Forest,TrustedForests,ExplicitDomains - Server string
- Optional domain controller (server) to target.
- ShowAll SwitchParameter
- Expand repeated non-circular parent groups again in tree output.
- Skip int
- Skips the specified number of output records after ordering.
- TimeoutSeconds int
- LDAP timeout in seconds.
- TreeDepth int
- Maximum displayed tree depth when using -AsTree. Use 0 for root only.
Outputs
ADPlayground.GroupParentEntry, ADPlayground.GroupParentResult, ADPlayground.Groups.GroupMembershipTreeNode