Graph API SharePoint permissions per user

Nemanja SOVIC 116 Reputation points
2023-10-09T14:43:51.6066667+00:00

Hello,

Is it possible to retrieve an access level that user has on a particular Sharepoint site with Graph API. Or even better, to list all users' on a specific SP site with their (highest) roles on a SP sites web object. Sharepoint API can do this, but I need Graph API so that I do not work in the context of a user that is executing API call.

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,457 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2023-10-10T03:04:00.6033333+00:00

    Hi @Nemanja SOVIC,

    Per my research, currently there is no such function to get users permission in site by graph. We can only use /sites/{sitesId}/permissions but the resource only returns permissions granted to the Azure Apps. The api doesn't return the users in the site. Here is a similar issue with yours

    https://sharepoint.stackexchange.com/questions/292435/list-permissions-for-sharepoint-sites-using-graphapi

    This is my test result

    User's image

    I feel regretful to inform you that it turns out to be a by-design one. And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    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.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Nemanja SOVIC 116 Reputation points
    2023-10-12T11:02:59.77+00:00

    tttttttttyttt