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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating SharePoint co...
Power Automate
Answered

Creating SharePoint connection that will have acess to multiple sites

(0) ShareShare
ReportReport
Posted on by 240

Hello, 

 

There is a request to be able to retrieve permission level for all users for a selected SP site on 0365 tenat. I know what API call I need to use for each site but confuses me is: how do I ensure that the account under which Power Automate action is created for that SP API call will have access to query Alluser list for a particular site.? What role should this account have in the tenant so that the above can work?  ...or please suggest another approach.

 

Thanks.

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

    Hi,

    First of all, if you don't already have one, I recommend using a dedicated service account as the owner of the flow.

    Then you can give it site collection administrator for each site or SharePoint administrator to allow it to manage any site.

     

    I personally always use a service account with SharePoint administrator privileges for my flows. So I can do what ever I want over SharePoint, Teams and OneDrive with that account. This is not a security breach since this account is only used for that and credentials are only known by couple of administrators.

    ______________________________________________________________

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

  • nemanjasovic011 Profile Picture
    240 on at

    ....the issue is that there might be thousands of sites. Could there be a role assigned to an account that will automatically be able.to query all sites?

  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at

    Hi,

    SharePoint Administrator may have access to all of them.  If SharePoint Administrators don't have automatic access to all sites, they can give themselves access to any site.

     

    In you flow or with another flow, you could check if you account has access to a site and if not, add it as site collection admin:  https://ganeshsanapblogs.wordpress.com/2022/10/30/sharepoint-online-add-site-collection-administrator-sca-using-power-automate/

    ______________________________________________________________

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard