你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzADGroupMember

列出组中的成员。

语法

ObjectIdParameterSet (默认值)

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>]

说明

列出组中的成员。

示例

示例 1:按组显示名称列出成员

Get-AzADGroupMember -GroupDisplayName $name

按组显示名称列出成员

示例 2:按管道输入列出成员

Get-AzADGroup -DisplayName $name | Get-AzADGroupMember

按管道输入列出成员

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

参数属性

类型:PSObject
默认值:None
支持通配符:False
不显示:False
别名:AzContext, AzureRmContext, AzureCredential

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Expand

展开相关实体

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Filter

按属性值筛选项,有关筛选查询的更多详细信息,请参阅: https://free.blessedness.top/en-us/graph/filter-query-parameter

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-First

仅获取第一个“n”对象。

参数属性

类型:UInt64
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-GroupDisplayName

目标组的显示名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

DisplayNameParameterSet
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-GroupObject

目标组对象可用作管道输入。

参数属性

类型:IMicrosoftGraphGroup
默认值:None
支持通配符:False
不显示:False

参数集

GroupObjectParameterSet
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-GroupObjectId

目标组的对象 ID。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False
别名:Id, 对象标识符 (ObjectId)

参数集

ObjectIdParameterSet
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Orderby

按属性值对项进行排序

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

按搜索短语搜索项目

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Select

选择要返回的属性

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Skip

忽略第一个“n”对象,然后获取剩余的对象。

参数属性

类型:UInt64
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

IMicrosoftGraphGroup

输出

IMicrosoftGraphDirectoryObject