你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureADUserOwnedObject
获取用户拥有的对象。
语法
Get-AzureADUserOwnedObject
-ObjectId <String>
[-All <Boolean>]
[-Top <Int32>]
[<CommonParameters>]
说明
Get-AzureADUserOwnedObject cmdlet 获取 Azure Active Directory (AD) 用户拥有的对象。
示例
示例 1:获取用户拥有的对象
PS C:\>Get-AzureADUserOwnedObject -ObjectId "df19e8e6-2ad7-453e-87f5-037f6529ae16"
ObjectId ObjectType
-------- ----------
9c2564d6-e4d7-4167-a79f-4b961512f232 Group
36db8aaf-022a-448d-aedc-34ef2ceb943c Group
529b48fb-6324-4899-88ab-fb9bd9ed0fd4 Group
0e6cf869-82ca-4647-b330-420b9a6f8ef7 Group
78045c26-218e-46fb-94b6-1a47320da153 Group
4c0ed9b7-cca2-4bb2-a2f1-736bb263ea0b Group
49a8bc01-2751-450b-a2e8-b4267f609513 Application
a0dada57-89ef-4db8-9e5f-46cca3bf2398 Group
此命令获取指定用户拥有的对象。
参数
-All
如果为 true,则返回此用户拥有的所有对象。 如果为 false,则返回 Top 参数指定的对象数
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-ObjectId
将用户 ID 指定为 Azure AD 中的 UPN 或 ObjectId) (。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Top
指定要返回的最大记录数。
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |