Query regarding extracting default site owners and site admins list of all SharePoint online sites in m365 tenant.

JAGANRAJ J 0 Reputation points
2025-02-07T07:11:58.06+00:00

Hi Experts , I'm looking to extract the Default site owners and site admins list for every SharePoint online sites in a M365 tenant , can you please provide your suggestion and guidance of what are all the available methods/ways to extract it in detail avoiding throttling on SharePoint.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,990 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,173 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.
3,265 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
624 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 45,021 Reputation points
    2025-02-07T08:28:15.0033333+00:00

    Hi @JAGANRAJ J

    As far as I know, the site resource does not currently expose an owner property. However, you can get the default library owner in a site. The default library owner will be the site owner. Below is the endpoint to get a site drive, there is an owner property in the response:

    GET https://graph.microsoft.com/v1.0/sites/{site_id}/drive
    

    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

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.