Get List of SharePoint site members using Office365-REST-Python-Client

Sree Kavya Komatineni 6 Reputation points
2022-04-04T13:07:08.6+00:00

Using Office365-REST-Python-Client, I am able to do all the below activities -

  1. Getting the list of files/folders
  2. Downloading the files to ADLS from SharePoint
  3. Uploading the files to SharePoint from ADLS
  4. Copying files across SharePoint.

But, not able to get the correct list of SharePoint site members.

The below code is giving me the result but not matching to the members which we get through the following URL: https://<Domain-Name>.sharepoint.com/sites/<>Site-Name/_layouts/15/people.aspx?MembershipGroupId=0 (getting a few more users in the output who are no longer a part of the SharePoint site)

189660-spusers.png

Any help for this is much appreciated!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,145 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,989 questions
0 comments No comments
{count} votes