适用于 PowerShell 的 Microsoft Graph SDK - 获取服务主体的 Api 权限和应用程序角色

问题描述 投票:0回答:1

我正在尝试使用适用于 PowerShell 的 Microsoft Graph SDK 检索分配给服务原则的 API 权限。我尝试使用以下命令

Get-MgServicePrincipalOAuth2PermissionGrant -ServicePrincipalId <Id>

但是,它并不提供所有的API权限。有人可以帮忙吗?

谢谢, 普拉文

microsoft-graph-api azure-powershell microsoft-graph-sdks
1个回答
0
投票

Get-MgServicePrincipalOauth2PermissionGrant
应返回委派权限,
Get-MgServicePrincipalAppRoleAssignment
返回应用程序权限。

© www.soinside.com 2019 - 2024. All rights reserved.