how to get the permissions from a shared file using Graph API? RRS feed

  • Question

  • Hi team,

    I am following graph documentation of permission to get the permission as well the Invitees details and assigned permission to them from OneDrive business account by using Graph API.Then I got error 404. 

    I've tried all the API's which is mentioned in the document. But the result was the same.

    I need to get the permission details of the files which is shared with me on  OneDrive. And also need to find with whom the file being shared ( only if the logged in user is admin). The codes I've tried is :

    var permissionshare = await graphClient.Shares[encodedUrl].Root.Children.Request(requestOptions)


    Var permission = await graphClient.Me.Drive.Items["Share file item id"].Permission.Request(requestOptions)

    and the other API's also. But all returns 404 error. Is there any way to get the permission as well the invitees of the file ?
    Is there any API exist for that ?

    Thanks in Advance

    Friday, January 10, 2020 10:54 AM

All replies