Get list or drive permissions for particular user

Olga Andreeva 126 Reputation points
2022-12-16T13:21:56.137+00:00

Hello!

I am implementing the application that allows a user to upload and view the files from sharepoint lists. Currently I am searching the way how to view the users permissions to the lists/drives and according to it allow or do not allow him to upload the file.

So the use case migh be the following:

  1. User has read permission to the list/drive -> user cannot upload a file
  2. User has write/owner permission to the list/drive -> user can upload a file

Could someone advise me on this case?

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Shivam Dhiman 6,081 Reputation points
    2022-12-16T23:25:13.247+00:00

    Hi @Olga Andreeva

    Currently using Graph API you can use List drive item permissions or List sites permissions.

    GET /sites/{siteId}/drive/items/{itemId}/permissions  
    GET https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions  
    

    To Get permission for SharePoint lists is not yet supported.
    Since this feature/functionality is presently not available, you can upvote this feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.
    I will also upvote for you.

    Hope this helps.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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