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 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[]> [-Credential <PSCredential>] [-Domain <string[]>] [-First <int>] [-Flatten] [-IncludeTrustedDomains] [-MaxCacheSize <int>] [-MaxDepth <int>] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [-Server <string>] [-Skip <int>] [-TimeoutSeconds <int>] [<CommonParameters>]#Parameters
- Identity string[]
- Object identities (DN/SID/UPN/SAM).
- 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.
- 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.
- Skip int
- Skips the specified number of output records after ordering.
- TimeoutSeconds int
- LDAP timeout in seconds.
Outputs
ADPlayground.GroupParentEntry, ADPlayground.GroupParentResult