Forum Discussion
View only items that logged in user created
ErikCRL You will have to use the custom item (file) level permissions for your scenario.
- Create a Power automate flow which will run when new file is created in the document library
- Break permission inhertiance on file item
- Grant Full control permissions on file item to site owner
- Grant Read or Edit (as per your requirements) permissions on file item to user who uploaded the file
Check this once: Manage list item and file permissions with Power Automate flows
You can also use the SharePoint REST APIs with "Send HTTP request to SharePoint" action in Power automate to break/grant permissions.
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.
- ErikCRLJan 09, 2024Copper ContributorThank you for your response.
It provided inspiration for a less elegant way to achieve what I was looking for.
- The flow is triggered when a file is created in a Library.
- Stop sharing file
- Get file properties
- Get User profile
- Grant access to an item- ganeshsanapJan 09, 2024MVP
Great work, I am glad my response helped you to achieve what you were looking for!
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.