Skip to content

Get-RefUserGroups

SYNOPSIS

Retrieves filtered group memberships for an Active Directory user.

SYNTAX

Get-RefUserGroups [-Identity] <Object> [<CommonParameters>]

DESCRIPTION

The `Get-RefUserGroups` function retrieves and filters the group memberships of a specified Active Directory user. It excludes default groups, Azure license groups, MS Dynamics groups, and ORBIT groups. Additionally, it allows specific `GRP_APPL_` groups with descriptions matching `ADSYNCHRO*`.

EXAMPLES

EXAMPLE 1

Get-RefUserGroups -Identity "jdoe"

Retrieves the filtered group memberships for the user "jdoe."

EXAMPLE 2

Get-RefUserGroups -Identity "CN=John Doe,OU=Users,DC=example,DC=com"

Retrieves the filtered group memberships for the user "John Doe" using their distinguished name.

PARAMETERS

-Identity

The identity of the Active Directory user (e.g., DistinguishedName or SamAccountName).

Type: Object
Parameter Sets: (All)
Aliases: DistinguishedName, SamAccountName

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES