简体   繁体   English

如何查找一个用户拥有的所有 Azure AAD 组?

[英]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.

相关问题 如何使用图形 API 获取用户所属的所有 Azure AD 组的列表? - How do I use the graph API to get a listing of all Azure AD groups of which a user is a member? 如何通过portal.azure.com将用户添加到我的AAD租户? - How Do I Add a User to My AAD Tenant via portal.azure.com? 如何使用ADAL / OpenId在azure AAD中获取当前用户? - How can I get the current user in azure AAD, with ADAL/OpenId? Microsoft GraphAPI:如何检索蔚蓝用户的分配组? - Microsoft GraphAPI: How do I retrieve the assigned groups of an azure user? 如何使用不记名令牌授权一个 Azure Active Directory 应用程序访问不同的 AAD 应用程序服务 Web API? - How do I authorize one Azure Active Directory app to access a different AAD App Service Web API using a Bearer token? 如何使用 Powershell Function App 从 AAD 获取组? - How do I get groups from AAD using Powershell Function App? Azure AD 如何将现有用户的所有组分配给新用户? - Azure AD How to assign all groups of an existing user to a new user? 如何使用Azure PowerShell SDK向Azure Active Directory(AAD)应用程序添加必需的权限? - How do I add required permissions to an Azure Active Directory (AAD) application using the Azure PowerShell SDK? Azure devops,如何找到所有有权删除存储库的用户和组? - Azure devops, how to I find all users and groups who have permission to delete a repository? 您如何获取用户所属的AAD的所有租户ID? - How do you get all tenant IDs for AAD your user is part of?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM