azure - 权限不足,无法完成操作 - Azure Active Directory

标签 azure powershell azure-active-directory

我正在尝试更新 Azure Active Directory 应用程序,但收到错误消息“权限不足,无法完成操作”,如下所示。我拥有完全的管理员访问权限,并且已授予 api 委托(delegate)权限和应用程序权限(如下所示)以及用户管理员角色。我已经搜索了权限和角色,但仍然无法使其正常工作。

enter image description here

这是我的权限配置的屏幕截图。

enter image description here

最佳答案

当您运行 Microsoft Graph Powershell Get-MgApplication 时,您需要使用如下命令登录它,包括 Application.Read.All 委托(delegate)权限。

Connect-Graph -Scopes "User.Read","Application.Read.All"

它会打开一个窗口,然后您需要输入代码进行身份验证,选择全局管理员帐户,选择代表您的组织同意选项,单击接受,如下所示。

enter image description here

登录后,运行Get-MgApplication,就可以正常工作了。

enter image description here

<小时/>

此外,实际上 Microsoft Graph Powershell 命令会调用不同的 Graph API,要运行不同的命令,您需要使用不同的权限Connect-Graph,例如如果要运行Update-MgApplication,需要添加Application.ReadWrite.All,要运行Get-MgGroup,需要添加Group.Read.All.

关于azure - 权限不足,无法完成操作 - Azure Active Directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60583769/

相关文章:

asp.net - Azure 上的静态内容(svg、woff、ttf)出现 404

azure-active-directory - 如何在 Multi-Tenancy 环境中配置代表身份验证?

windows - 如何更改用于 SAPI.SPVoice 的语音

string - PowerShell-从多个文件名中删除某些字符串

powershell - 如何更改 Windows 的默认控制台主机应用程序?

azure - 从 Microsoft 门户 Azure Active Directory 获取错误问题

azure - MSAL.Net 和 Xamarin.Forms 存在重定向 url 问题

azure - 更改 Azure APIM 响应中的 Set-Cookie 路径

c# - asp.net 部署 - 找不到 Main.Master.cs 文件

azure - 获取 AzureKeyVaultSecret : Operation returned an invalid status code 'Forbidden'