Share via

How to list file level permissions in SharePoint using Graph API

kshitiz 0 Reputation points
2024-03-06T21:26:01.4533333+00:00

I need to retrieve the permissions granted to a file inside a folder in a SharePoint site through Graph API. Can someone provide guidance on how to accomplish this?

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-03-07T02:36:22.78+00:00

    Hi @kshitiz,

    You could use the following api to get the permission of a list item

    https://graph.microsoft.com/v1.0/sites/<siteid>/lists/<listid>/items/<itemid>/driveitem/permissions
    

    Here is the test result

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.