管理 Microsoft Entra ID 中的组所有权对于委派管理控制和确保组织内的责任制至关重要。IT 管理员经常需要检索 Microsoft Entra ID 组所有者列表,以验证权限、更新职责或执行各种治理策略。虽然 Microsoft Graph PowerShell 命令如 Get-MgGroupOwner 可以帮助管理员获取组所有者详细信息,但这需要脚本知识且可能耗时。
这就是 ManageEngine ADManager Plus 的用武之地。这个 Active Directory 管理 和 报告 工具提供预配置的报告,易于生成和导出。管理员可以轻松识别、更新和管理 Microsoft Entra ID 中的组所有者,无需复杂的 PowerShell 脚本。
查看组的所有者。
使用筛选器自定义报告,并将筛选后的报告另存为新报告。
导出报告并通过电子邮件发送。
在运行 Get-MgGroupOwner cmdlet 之前,请确保满足以下要求:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "GroupMember.Read.All", "Group.Read.All"
在 Microsoft Graph PowerShell 中使用 Get-MgGroupOwner cmdlet 检索 Microsoft Entra ID 组所有者列表。语法如下:
Get-MgGroupOwner
-GroupId <String>
[-ExpandProperty <String[]>]
[-Filter <String>]
[-Property <String[]>]
[-Search <String>]
[-Skip <Int32>]
[-Sort <String[]>]
[-Top <Int32>]
[-ConsistencyLevel <String>]
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PageSize <Int32>]
[-All]
[-CountVariable <String>]
[-ProgressAction <ActionPreference>]
[<CommonParameters>]
示例:获取组的所有者
Get-MgGroupOwner -GroupId "your-group-id"
下表列出了可与 Get-MgGroupOwner cmdlet 一起使用的关键参数,以高效获取 Microsoft Entra ID 组所有者列表。
| 参数 | 描述 |
|---|---|
| -All | 此列表显示所有页面。 |
| -ConsistencyLevel | 这表示请求的一致性级别。 |
| -CountVariable | 指定集合中项目的总数。默认情况下,此变量将在全局作用域中设置。 |
| -Filter | 按属性值过滤项目。 |
| -GroupID | 这是组的唯一标识符。 |
注意:Microsoft 已宣布弃用 Azure AD PowerShell 并过渡到 Microsoft Graph PowerShell。