View only items that logged in user created

Copper Contributor

Hello All,

I'm slowly making headway, and I need some help please.

The scenario is:

User uploads a file to a SharePoint Document Library. Only the logged in user should be able to see items that they created/modified.

 

If I enable SharePoint level approval, I get the desired behavior. In our case, we do not want a file approval process.

 

I understand that a List can be configured for this behavior, but we need to use a Document Library.

 

Thank you for your feedback

 

3 Replies

@ErikCRL You will have to use the custom item (file) level permissions for your scenario.

 

  1. Create a Power automate flow which will run when new file is created in the document library
  2. Break permission inhertiance on file item
  3. Grant Full control permissions on file item to site owner
  4. 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.

Thank 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

@ErikCRL 

 

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.