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 / how to run a power aut...
Power Automate
Unanswered

how to run a power automate flow in the context of the user and not in the context of the owner of the flow

(0) ShareShare
ReportReport
Posted on by 8

I have created a power automate flow that excutes the following steps:

  1. when an item is created in a specific sharepoint list
  2. retrieve personal profile
  3. create an HTML file on onedrive containing information retrieved by point 1 
  4. create file PDF (HTML converted to PDF) on sharepoint document library
  5. delete HTML file created at point 3.

When I add an item to the sharepoint list the flow generates a pdf file containing data I need where the author is me. Still, I need this flow to be executed in the context of the account of the users with which I shared the lists and not in my context because I am the owner. How can I set this configuration? I tried to share the flow with another user and I asked him to add a new item to the list, the flow is executed in the right way but not in his context, indeed files are created in my onedrive workspace (not in his onedrive's user) and the author of the PDF uploaded in sharepoint document is not the user that has created by the item on the list by the owner of the flow (in this case me). How can I set the configuration in order to run the flow in the task of the user that creates the item on the list?

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,278 Super User 2026 Season 1 on at

    The trigger you are using can only be run on the credentials of the owner of the flow, which is you. However, I am not understanding why this is an issue since you end up saving the PDF file back to the SharePoint document library according to your step 4. Why does it matter what account the flow runs under?

  • Domenico88 Profile Picture
    8 on at

    I am developing a portal for the human resources of my organization where employees can submit several requests it could be nice if the documents generated from the application and loaded into the document library have as the author of the person that has submitted the requests. Moreover, the flow that I build with power automate generate several file on onedrive and I don't want these file are uploaded on my onedrive workspace but only in the workspace of the employee that performs the request. Finally, some flows contain the approval request and when the flow is executed on the credentials of the owner of the flow the request is the owner and not the user that activates the process of adding an item into sharepoint list. Thank you for your support, this is my first experience with these Microsoft technologies for this reason I haven't high knowledge.

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 607

#2
Valantis Profile Picture

Valantis 495

#3
Vish WR Profile Picture

Vish WR 429

Last 30 days Overall leaderboard