开发者

Getting data from sharepoint permissions problem

开发者 https://www.devze.com 2022-12-07 22:41 出处:网络
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,

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

精彩评论

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