Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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? 

  • paulbeck1 Profile Picture
    244 on at
    Re: Sharepoint Get Items Action run as service account

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

  • paulbeck1 Profile Picture
    244 on at
    Re: Sharepoint Get Items Action run as service account

    @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

     

     

  • alex5p Profile Picture
    210 on at
    Re: Sharepoint Get Items Action run as service account

    @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
    Re: Sharepoint Get Items Action run as service account

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

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Sharepoint Get Items Action run as service account

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow