Get-AzureADUserDirectReport
获取用户的直接下属。
语法
Default (默认值)
Get-AzureADUserDirectReport
-ObjectId <String>
[-All <Boolean>]
[-Top <Int32>]
[<CommonParameters>]
说明
Get-AzureADUserDirectReport cmdlet 获取 Azure Active Directory (AD) 中用户的直接下属。
示例
示例 1:获取用户的直接下属
PS C:\>Get-AzureADUserDirectReport -ObjectId "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb"
ObjectId ObjectType
-------- ----------
5e8b0f4d-2cd4-4e17-9467-b0f6a5c0c4d0 User
此命令获取指定用户的直接下属。
参数
-All
如果为 true,则返回此用户的所有直接下属。 如果为 false,则返回 Top 参数指定的对象数
参数属性
| 类型: | Boolean |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-ObjectId
指定 Azure Active Directory 中用户的 ID(UPN 或 ObjectId)
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Top
指定要返回的最大记录数。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
备注
请参阅 Get-AzureADUserDirectReport 到 Microsoft Graph PowerShell 的迁移指南。