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 / Run flow in the contex...
Power Automate
Unanswered

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.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    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

  • Verified answer
    osmantosun Profile Picture
    9 on at

    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.

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard