Get-AzADGroupMember
Lists members from group.
Syntax
Get-AzADGroupMember
-GroupObjectId <String>
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzADGroupMember
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
-GroupDisplayName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzADGroupMember
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
-GroupObject <IMicrosoftGraphGroup>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Lists members from group.
Examples
Example 1: List members by group display name
Get-AzADGroupMember -GroupDisplayName $name
List members by group display name
Example 2: List members by pipeline input
Get-AzADGroup -DisplayName $name | Get-AzADGroupMember
List members by pipeline input
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Expand
Expand related entities
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Filter
Filter items by property values, for more detail about filter query please see: https://learn.microsoft.com/en-us/graph/filter-query-parameter
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-First
Gets only the first 'n' objects.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupDisplayName
The display name of target group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupObject
The target group object, could be used as pipeline input.
Type: | IMicrosoftGraphGroup |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GroupObjectId
The object Id of target group.
Type: | String |
Aliases: | Id, ObjectId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Orderby
Order items by property values
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Search
Search items by search phrases
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Select
Select properties to be returned
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Skip
Ignores the first 'n' objects and then gets the remaining objects.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |