AADSTS90094无法向应用发布商授予Microsoft帐户'

时间:2017-10-24 18:47:17

标签: azure azure-active-directory

我们有一个应用程序,其发布者是' Microsoft Accounts',我们希望将图表api授予此应用程序,但是无法在门户网站中授予权限,现在用户获得错误&# 39; xxx需要权限才能访问组织中只有管理员才能授予的资源。请先让管理员授予此应用程序的权限,然后才能使用它。 AADSTS90094:该授权需要管理员权限。',如何解决此问题? enter image description here

1 个答案:

答案 0 :(得分:1)

您的组织似乎正在使用Application Registration Portal(Azure AD V2.0端点)中的app reigster。

如果我理解正确,Azure门户网站不支持授予管理员同意。我们需要执行如下请求:

GET https://login.microsoftonline.com/{tenant}/adminconsent?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&state=12345
&redirect_uri=http://localhost/myapp/permissions 

更多详情请参阅以下链接:

Scopes, permissions, and consent in the Azure Active Directory v2.0 endpoint - Using the admin consent endpoint

相关问题