Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Run flow in the context of flow author

(0) ShareShare
ReportReport
Posted on by 9

Dear All,

I'm facing some issues with Powerapps and Flow.
I'm working on an app with powerapps to submit and track procurement requests.
Data is stored in Sharepoint lists/libraries (SPO).
I'm submitting data with Patch function, and if patch succeeds a flow is triggered from powerapps. 

The problem is when the flow runs, it runs in the context of the logged in user in powerapps. But i want it to run in the context of the author of the flow. Because flow contains breaking/changing permissions of list items and I want to grant this right to the author of the flow.

I'm looking for your valuable inputs.

Thanks in advance.

  • Verified answer
    osmantosun Profile Picture
    9 on at
    Re: Run flow in the context of flow author

    Hi Barry,

     

    the flow is a little long so i'll try to explain the situation.

    All the connections in powerapps and flow are made with an account with "full control" rights in SPO.

    The flow is being triggered from Powerapps when a button is clicked. But it runs with the credentials/access rights of the logged in user in Powerapps. All users has contribute rights to the Library/Lists but in a step permission inheritance needs to be broken and new assignments should be made. Since the logged in user has only contribute rights flow fails in that step. I've searched a lot and could not find a solution with this setup.

     

    Then a colleague from my organization suggested to break the flow to two parts. The first one would be triggered from Powerapps and the second one would be triggered from the first flow. I've implemented the method explained in  https://flow.microsoft.com/de-de/blog/build-nested-flows/ and it works just fine. Almost all the actions are in the second flow and since it runs with the user account with "Full Access" rights the flow succeeds.

     

    If there is a better way to handle it, suggestions are welcome.

     

    Best regards.

     

     

  • v-bacao-msft Profile Picture
    on at
    Re: Run flow in the context of flow author

    Hi @osmantosun,

     

    Could you share the full screenshots of your current Flow configuration?

    Do you mean that some of the action connection configurations in Flow use the accounts of users who have logged in on Powerapps?

    Maybe you could consider creating a team flows so that the author of the Flow can have permission to change the action's link to use his own account.

    Please check and see if the following link would help:

    https://docs.microsoft.com/en-us/flow/create-team-flows

    It would be helpful if you could post more details and we would provide a proper workaround for you.

     

    Best Regards,

    Barry

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow