Move a file to a folder in the same library without read permission

Copper Contributor

How do I move a file in a Sharepoint Online library to a folder in the same library using a Power Automate flow, but without the user having access to the destination folder?

3 Replies

@spena1611 

 

You want to move file in same library using Power Automate but Account which you are using for Power  Automate does have only read permission. If my understanding is correct then you need to use App Only Authentication which required to register application and provide necessary permission to application.

Below is the helper links for the same:

 

https://anupams.net/sharepoint-rest-service-microsoft-flow/

 


Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community

@spena1611 To move files from one folder to another folder, you will need Edit/Full Control permissions on source folder and Contribute or higher permissions on destination folder.

 

You can create app registration as mentioned by @kalpeshvaghela below. However, it might be a overkill sometimes for just single requirement of moving files. So, try to run the flow using Site Collection Administrator (SCA) account in SharePoint site (if you can get it) or request at least Full control access on library for your account temporarily from IT/admin team.


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

Hi @spena1611 , I do things like this all the time, using a service account. Essentially you have a generic account as the owner of the Flow and an appropriate trigger. You can use a PowerApp to display the contents of a document library and have the user initiate any document move/transfer from the app. The Flow would be triggered and the document moved.