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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint Get Items A...
Power Automate
Answered

Sharepoint Get Items Action run as service account

(0) ShareShare
ReportReport
Posted on by 210

I am currently using the Sharepoint Get Items action within one of my flows. It has been working for over 5 + years however, due to security reasons at my current company they have removed access to Sharepoint for all users. Because sharepoint has been disabled for all users the flow is failing out whenever someone tries to run it. Is it possible to have the "get items" action run as a service account that created the flow rather than the user who is triggering the flow? 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @alex5p ,

     

    If this flow is a 'button flow' , you could try:

    1. On the details page of the flow, click the "Edit" button next to "Run only users":

     

    vbofengmsft_0-1715130406187.png

     

     

    2. On the "Manage run-only permissions" panel, make sure to select "Use this connection (...)"(use your credentials) from the "Connection Used" dropdown list.

     

    vbofengmsft_1-1715130406179.png

     

     

    Best Regards,

    Bof

  • paulbeck1 Profile Picture
    244 on at

    @alex5p check who the flow runs as, the user/users need access to the SPO list.

  • alex5p Profile Picture
    210 on at

    @v-bofeng-msft @paulbeck1 Thanks for your responses.

     

    Sorry I should have added a little more detail. I have a button setup in a powerapps application that runs the flow. The flow is type "instant". I am not seeing that option to  "run only user". This flow was created about 4 years ago as well. There is a Connections menu like you have in the screen which is set to a service account that doesn't have sharepoint blocked. If I login as the service account onto the powerapps application and hit the button to run the flow it works fine. 

     

  • paulbeck1 Profile Picture
    244 on at

    @alex5p So you are running an Instant flow and the trigger is Power Apps. 

    By default this flow runs in the context of the user that is logged in in the Canvas App and triggers the flow.  You can specify the account to use.  There should also be an option to buy pay-as-you-go flows and then you can just pay for the flows you use.

    paulbeck1_0-1715205944105.png

     

     

  • paulbeck1 Profile Picture
    244 on at

    @alex5p try rebuild the flow if it is easy/simple, use the copy action option to add actions 1 step at a time.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 600

#2
Valantis Profile Picture

Valantis 453

#3
11manish Profile Picture

11manish 356

Last 30 days Overall leaderboard