How to get users who has access to Sharepoint sites using graph API?

SANTOSH HEGDE 0 Reputation points
2025-04-04T06:04:36.3333333+00:00

How to get users who has access to Sharepoint sites using graph API?

When I invoke https://graph.microsoft.com/v1.0/users/, it gives me all users present in IAM. But I want to fillter only users who can access sharepoint.

And https://graph.microsoft.com/v1.0/groups will all groups which doesn't provide sharepoint system generated groups.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,480 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 46,316 Reputation points
    2025-04-04T08:39:01.5033333+00:00

    Hi @SANTOSH HEGDE

    As far as I know, the Graph API currently does not support directly getting the users or groups that have access to a given SharePoint site. You may need to use the SharePoint REST API or PowerShell scripts.

    Hope this helps.

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

    0 comments No comments

  2. Rajat Vashistha-MSFT 1,530 Reputation points Microsoft External Staff
    2025-04-04T08:52:59.1433333+00:00

    Hi SANTOSH HEGDE,

    Thanks for reaching out to Microsoft!

    Currently, there isn't a Graph API available that directly provides a way to retrieve the users/groups with access to SharePoint Sites.

    Since this feature/functionality is presently not available, you can submit a feature request idea using 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.


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.