我正在尝试使用适用于 PowerShell 的 Microsoft Graph SDK 检索分配给服务原则的 API 权限。我尝试使用以下命令
Get-MgServicePrincipalOAuth2PermissionGrant -ServicePrincipalId <Id>
但是,它并不提供所有的API权限。有人可以帮忙吗?
谢谢, 普拉文
Get-MgServicePrincipalOauth2PermissionGrant
应返回委派权限,Get-MgServicePrincipalAppRoleAssignment
返回应用程序权限。