Hi @Abhijith Chandrababu,
To fetch the users who are in SharePoint default groups like Owners, Members, and Visitors, you can use the SharePoint REST API endpoint /_api/web/sitegroups/getbyname('Group Name')/users
. Replace 'Group Name' with the name of the group you want to fetch users for. For example, to fetch users in the Owners group, use the endpoint /_api/web/sitegroups/getbyname('Owners')/users
. You can also use the endpoint /_api/web/sitegroups
to get information about all the groups in the site, including their ID and name.
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.