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.
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
Find your favorite faces from the community presenting at the Power Platform Community Conference!