Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Get-AzADGroupMember
- Module:
- Az.Resources Module
Lists members from group.
Syntax
ObjectIdParameterSet (Default)
Get-AzADGroupMember
-GroupObjectId <String>
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
DisplayNameParameterSet
Get-AzADGroupMember
-GroupDisplayName <String>
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GroupObjectParameterSet
Get-AzADGroupMember
-GroupObject <IMicrosoftGraphGroup>
[-Expand <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-Select <String[]>]
[-First <UInt64>]
[-Skip <UInt64>]
[-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.
Parameter properties
| Type: | PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
-Expand
Expand related entities
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Filter
Filter items by property values, for more detail about filter query please see: https://learn.microsoft.com/en-us/graph/filter-query-parameter
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-First
Gets only the first 'n' objects.
Parameter properties
| Type: | UInt64 |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-GroupDisplayName
The display name of target group.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-GroupObject
The target group object, could be used as pipeline input.
Parameter properties
| Type: | IMicrosoftGraphGroup |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-GroupObjectId
The object Id of target group.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Id, ObjectId |
Parameter sets
-Orderby
Order items by property values
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Search
Search items by search phrases
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Select
Select properties to be returned
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Skip
Ignores the first 'n' objects and then gets the remaining objects.
Parameter properties
| Type: | UInt64 |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
IMicrosoftGraphGroup
Outputs
IMicrosoftGraphDirectoryObject
Azure PowerShell
Feedback
Was this page helpful?
