Get-MtGroupMember
Synopsis
Section titled “Synopsis”Returns all the members of the specific group ID.
Syntax
Section titled “Syntax”Get-MtGroupMember [-GroupId] <Guid> [-Recursive] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”Returns all the members of the specific group ID.
A group that is not found (404), such as a deleted group or an external partner group assigned through GDAP, returns $null. Any other error, such as missing permissions or throttling, is thrown, so a check that depends on the members cannot pass without reading them.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-MtGroupMemberParameters
Section titled “Parameters”-GroupId
Section titled “-GroupId”ID for the Entra group to return members for.
Type: GuidParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Recursive
Section titled “-Recursive”Include indirect members through nested groups.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.