web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automate Site Collecti...
Power Automate
Unanswered

Automate Site Collection Admin list

(0) ShareShare
ReportReport
Posted on by

I need to create a list of SharePoint site collection admins for use by our service desk when users submit an access request.

 

Ideally, the list would automatically update on a periodic basis (weekly?) as new sites are created or sites change hands.

 

Has anyone done this before?

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,338 Moderator on at

    Hi @johnreece,

     

    I've never done that before as I've never met that need from any of my customer but it is doable, first you'll have to get all site collections from your tenant, then site admin users and finally populate a SharePoint list.

     

    I'll give you the first two steps as they are the tricky part, up to you to design the last one.

    SamLed_2-1706991530169.png

     

    This flow, retrieve all sites collection in a tenant and retrieve all users who is admin for each.

     

    1st request: Get site collection list

     

    Url: URL of your tenant SharePoint admin center (https://yourdomaine-admin.sharepoint.com)

    uri: /_api/web/lists/getbytitle('DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS')/items

     

    2nd request: Get all site admin users

     

    url: SiteUrl dynamic content from Parse JSON

    uri: /_api/web/siteusers?$filter=IsSiteAdmin eq true

     

    Note: Owner of this flow must be SharePoint administrator in order to access SharePoint admin site.

     

    To generate Parse JSON required schema, run first http request and paste raw outputs in Parse JSON "Generate from sample" tool.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • jhu30 Profile Picture
    5 on at

    @johnreece were you able to successfully create the flow? I'm trying to create a similar app for service desk users. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard