[英]How do I find all Azure AAD groups owned by one user?
I need to find all the groups owned by an user.我需要找到用户拥有的所有组。 I can see all the groups the user is member of, but to find the owner I have to go one by one.我可以看到用户所属的所有组,但要找到所有者,我必须一一去。 On the MS doc, it seems it's possible to filter by "User type" but I don't have that option in the search box.在 MS doc 上,似乎可以按“用户类型”进行过滤,但我在搜索框中没有该选项。 Maybe I miss a permission myself?也许我自己错过了许可? Or there is another way of doing it?或者有另一种方法吗?
To find all the Azure AD groups owned by a specific user, you can make use of below PowerShell cmdlet:要查找特定用户拥有的所有 Azure AD 组,可以使用以下PowerShell cmdlet:
Get-AzureADUserOwnedObject -ObjectId xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx | Select-Object ObjectID, ObjectType, DisplayName
I tried to reproduce the same in my environment and got the groups owned by that user successfully like below:我尝试在我的环境中重现相同的内容,并成功获得了该用户拥有的组,如下所示:
Alternatively , you can also make use of Microsoft Graph Explorer .或者,您也可以使用Microsoft Graph Explorer 。
Query:询问:
GET https://graph.microsoft.com/v1.0/users/user_object_id/ownedObjects?$select=displayName,ID
Response:回复:
Reference:参考:
Get-AzureADUserOwnedObject (AzureAD) | 获取 AzureADUserOwnedObject (AzureAD) | Microsoft Docs 微软文档
List ownedObjects - Microsoft Graph v1.0 | 列出拥有的对象 - Microsoft Graph v1.0 | Microsoft Docs 微软文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.