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 / Find all SharePoint si...
Power Automate
Unanswered

Find all SharePoint sites a User has access to

(0) ShareShare
ReportReport
Posted on by 123

Hello,

 

I would like to create a flow that lists all SharePoint Sites a User has access to. 

 

The Flow will be triggered from the onStart of a power app. This will run a cloud flow passing the users's email address to the flow. 

 

I figured this could be done by sending an HTTP request, but I am struggling with the API call. 

 

After retrieving the list of sites available to the user, return the info to the Power App for the user to see in a data table. It would be nice to retrieve the access level that the user has for each site as well, but not required. 

 

Any examples or suggestions will be greatly appreciated!

 

 

Categories:
I have the same question (0)
  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    Hi @CamCov 

    You could do the following steps:

     

    1) Get all site collections in a Tenant. You can see the workflow here: Get All Site Collections Of Office 365 Tenant In MS Flow (c-sharpcorner.com)

     

    2) For each site, you can check if the user has permissions using the "Send an HTTP Request to SharePoint":

    sp-site-url.png

     

    Hope that helps!

    Ferran

  • CamCov Profile Picture
    123 on at

    @fchopo This is very close to what I need. This article only shows how to pull down site collections. I need to go one step further to the sites themselves. 

    To be clear, all of the sites located under the Active Sites page on SharePoint Admin Center -> 

    CamCov_0-1658326981725.png



    Also, within SharePoint Admin Center, how can I view all Site collections?  

  • CamCov Profile Picture
    123 on at

    @CamCov this was a silly question @fchopo sorry for the confusion. You directed me to the right place. I didnt realize SharePoint HTTP requests default at 100 entries returned. All better now!

  • ajeanjacket Profile Picture
    15 on at

    Would this solution work based on a form submission trigger? I am trying to automate creating folders and dumping the form's attachments into different sharepoint libraries based on a particular question from the form.

    Basically, there are different properties in my portfolio, each with a different teams channel/ SharePoint page. Based on the property the on-site team member fills the form out for, I would like the automation to populate the site address into the "create folder" and "create file" actions I have in my flow. I previously tried to copy the attachments scope I created and paste them into each switch case per property, but that caused too many actions. I hope this makes sense and appreciate the help!
    @CamCov 

  • Turreaux Profile Picture
    6 on at

    I was able to mostly use your solution but I need to search for a specific user. Is there a way to specify which user rather than all 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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard