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 / List all users of a Sh...
Power Automate
Unanswered

List all users of a SharePoint Site

(2) ShareShare
ReportReport
Posted on by 2

Hi all, we have a requirement that I am hoping to implement, where by a button is made available to users on each SharePoint site we create, that when pressed will list all users who have access to that site. I cannot seem to find away (not sure if its possible) to have a Flow that will do it with out creating one for each site and specifying the Site id.
From doing a bit of research I can only find a way to create it for a specific Site, which is to time consuming, where as I hoping that when setting up the flow, and when it calls the Graph API I can return all users on that current SharePoint site they are sitting on when they press the button.

thanks

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    Your research is correct from my knowledge. You might be able to do this:
    1. Create a flow that is manually triggered instant cloud flow.
    2. Add an input for the group name.
    3. Add the List groups action with a filter query where displayName eq 'Group Name from Trigger'
    4. Add a condition to see if one group was found with that name.
    5. If so, on the yes side use the List group members action with the Group ID from step 3.
    The flow will look like this:
    You can then give everyone access to run the flow. Of course, the users will need the appropriate licensing to run the flow and there will be a little more to it than this.
  • Suggested answer
    Zdenka_Cech Profile Picture
    101 on at
    Hi 
    this could be tedious task even for PowerAutomate, because:
    • there could be break permissions on a list or a single item
    • there could be shared links
    • there could be also office365 or security groups
    So to itinerate all items and their permissions on a site could take 'ages' for powerautomate.
    The best way I can suggest is to use third party tools such as Sharegate or SharePoint Manager Plus. 
    We did similar requirement to track permissions the Sharegate report can be scheduled and uploaded to the site for the owner review. It is quick also for large sites with over 10million files or xTB in size.
     
    But if you want to simply list all users on the Site Permissions level only (note there could be group types like SharePoint, Office365, Security) you need to collect all the groups than check their type to use appropriate action to retrieve their members like in the answer by David earlier. Plus single user if added directly.
     
    Anyway I guess they want to list all users having access anywhere on the site.  So you maybe would like to try some third party tools.
     
    I think you do not need to create for each site, to get siteID you can use the https Sharepoint request action or Graph API with the trigger site url. Here is one good tip: Get All Site Collections Of Office 365 Tenant In MS Flow
     
    *Zdenka
     
     
     
     

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