I hope you are well.
I was wondering if it is possible to run an action in Flow under elevated permissions? I have a SharePoint list which users will not have access to but I want a flow to be able to add an item to the list.
Hi @seamus1982 you can either use a combination of Add-in permissions and REST to do this.
The easier way is to have a service account which has permissions to access it. Then change the connection of any actions which need to interact with it.
If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.
Community Leader: Black Country PowerApps & Flow User Group
Flow uses the connection associated with the action. So, if you created the Flow it is likely using your connection. If you have permissions to the second list then the Flow will run just fine.
If you have a situation where your end users are using copies of your Flow, then your users will need to supply their own connection info when they import the Flow. If they don't have permissions to the second list, the Flow will fail and you'll need to explore alternative solutions as suggested by @MattWeston365 .
Hi @seamus1982 ,
About work with list items by using http request can refer to this document: #working-with-list-items-by-using-rest.
This blog is referring to SharePoint REST API URL for accessing List items, documents, assign permission in list, document libraries, Search and user profile property:
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I managed to add users to a SP group using a temp table in between and addin a Flow that recats to the creation of a record in that temp table.
So, someone, via a Flow triggered in PowerApps, can request to be added to a SP security group. If approved, then the same Flow that manages the approval, add their email to another list. The second Flow is triggered wiht my (Admin) connections on Creation and the user is added via that second Flow.
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.