How do I get users informations with GRAPH API for a specific Sharepoint site

Sanar 0 Reputation points
2023-06-16T07:43:01.5666667+00:00

I'm trying to get users of my won SharePoint site, I have the HTTP resuqste that I modified:

GET https://graph.microsoft.com/v1.0/sites/{{SiteID}}/users

But I have an error with message:

Resource not found for the segment 'users'

Did anyone try to get users of a specific SharePoint site ?

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

2 answers

Sort by: Most helpful
  1. Manu Philip 20,286 Reputation points MVP Volunteer Moderator
    2023-06-16T08:03:12.2066667+00:00

    Probably, the following api may help. Have a try and let's know

    https://graph.microsoft.com/v1.0/sites/{siteid}/lists/User Information List/items?expand=fields
    

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.

  2. Sanar 0 Reputation points
    2023-06-20T06:57:35.3333333+00:00

    Unfortunately, it doesn't work. I think there is many permissions that I don't have.

    I tried to read the official documentation about "...User Information List/items?expand=fields", I don't find any information about this?


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.