TestimoX

API Reference

Command

Get-ADXPrincipalGroupMembership

Namespace ADPlayground.PowerShell
Inputs
System.String[]
Outputs
ADPlayground.GroupParentEntry ADPlayground.GroupParentResult

Gets group memberships (parent groups / memberOf) for the specified principal identities. Returns group parents (flattened by default) or the raw GroupParentResult.

Examples

Authored help example

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[] requiredposition: 0pipeline: true (ByValue)aliases: DistinguishedName, DN, Name, PrincipalIdentity, SamAccountName, UPN, UserPrincipalName
Object identities (DN/SID/UPN/SAM).
Credential PSCredential optionalposition: namedpipeline: false
Optional credentials used for LDAP bind.
Domain string[] optionalposition: namedpipeline: falsealiases: DomainName
Optional domain DNS names used when scoped identity resolution is requested.
First int optionalposition: namedpipeline: falsealiases: Top
Returns at most the specified number of output records after -Skip.
Flatten SwitchParameter optionalposition: namedpipeline: false
Return flattened parents (default). When false, return GroupParentResult.
IncludeTrustedDomains SwitchParameter optionalposition: namedpipeline: false
Includes trusted domains when using forest-based scopes for identity resolution.
MaxCacheSize int optionalposition: namedpipeline: false
Maximum cache size used by resolver.
MaxDepth int optionalposition: namedpipeline: false
Maximum recursion depth.
Scope DirectoryScenarioScope optionalposition: namedpipeline: falsevalues: 4
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 optionalposition: namedpipeline: falsealiases: DomainController
Optional domain controller (server) to target.
Skip int optionalposition: namedpipeline: false
Skips the specified number of output records after ordering.
TimeoutSeconds int optionalposition: namedpipeline: false
LDAP timeout in seconds.

Outputs

ADPlayground.GroupParentEntry, ADPlayground.GroupParentResult