I have created a power automate flow that excutes the following steps:
- when an item is created in a specific sharepoint list
- retrieve personal profile
- create an HTML file on onedrive containing information retrieved by point 1
- create file PDF (HTML converted to PDF) on sharepoint document library
- 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?