开发者

Getting data from sharepoint permissions problem

I am trying to get a list of sites, or a list of drives on a given sharepoint site. the app that is registered has the below permissions. I have confirmed that I am using the associated clientid,secret,appid to get my token.

Getting data from sharepoint permissions problem

When i make my call:

$myUrl = "https://graph.microsoft.com/v1.0/drives/someDriveId/items/root/children";

I get:

    [error] => stdClass Object
    (
        [code] => accessDenied
        [message] => Access denied
        [innerError] => stdCl开发者_高级运维ass Object

What am i missing?


Hi @bart2puck Can you please decode your token and check if the above permissions are available in it here https://jwt.io/

if you are trying to list the children of the drive, these are the permissions required for it:

Getting data from sharepoint permissions problem

For more information:https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=http#permissions

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜