Azure用户的图形端点 [英] Graph Endpoint for Azure users

查看:90
本文介绍了Azure用户的图形端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从邮递员访问azure中的用户,我收到以下错误 


{


    "错误":{

        "code":"Authorization_RequestDenied","
        " message":"完成操作的权限不足。",

        "innerError":{

            "request-id":" d435bcbf-a064-41a1-b6b1-c20cd2bd2166",

            "date":" 2019-03-06T06:01:56"

        }¥b $ b    }
}


我已经在Windows Azure Active Directory和Microsoft Graph中授予了权限。但我仍然看到上面的错误信息。


解决方案

Hello Abuthahir,


您使用的是客户端凭据流吗? 


您需要以下任何权限" User.Read.All,User.ReadWrite.All,Directory.Read.All,Directory .ReadWrite.All "分配给应用程序的
可以拨打用户电话。 


参考:  https://docs.microsoft.com/en-us/graph/ api / user-get?view = graph-rest-1.0 


您可以在https://jwt.ms解码您正在使用的令牌以查看是否存在权限。


I am trying to access a user in azure from postman and i get the below error 

{

    "error": {
        "code": "Authorization_RequestDenied",
        "message": "Insufficient privileges to complete the operation.",
        "innerError": {
            "request-id": "d435bcbf-a064-41a1-b6b1-c20cd2bd2166",
            "date": "2019-03-06T06:01:56"
        }
    }
}

I have given permissions in Windows Azure Active Directory as well as Microsoft Graph. But still i see the above error message.

解决方案

Hello Abuthahir,

are you using the client credentials flow ? 

You need any of the following permissions "User.Read.All, User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All" assigned to the application to be able to make get user call. 

Ref: https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0 

You can decode the token you are using at https://jwt.ms to see if the permissions are present.


这篇关于Azure用户的图形端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆