Forum Discussion
Michiel van den Broek
Nov 04, 2021Iron Contributor
New Document not working for user who only has access to shared folder and not whole library?
Hi
I created a document library ("Project Documents") in a teamsite. Within this library I create a Document Set ("Project Document Set") foreach project. The document set has specific Conten Types (e.g. Project Plan).
I then break permissions for the library, so project members don't have access to all Project Document Sets.
I share specific Document Sets with a user, with editing rights in that Document Set.
The user is able to add files to the document set, but using the "New" button and choosing "Project Plan" results in a new tab (Word Online), but no document is created and the tab stays blank.
Giving the user access to the document library solves this, but then the user sees all content.
How do I solve this, but with the user only seeing the document sets that are shared with him?
- Michiel van den BroekIron Contributor
I contacted Microsoft. We solved it by:
1. Restoring permission inheritance on the library level.
2. Creating a document set
3. Breaking the inheritance on document set level (keeping a copy of the permissions)
4. Removing the group who isn't allowed to see (in my case they were all in the visitors group, so removing group with id=4)
5. Sharing the document set with the specific user who needs access on a folder level.
As we use PowerAutomate to create the document set, we use the SharePoint connector HttprequestBased on this post: Solved: A flow to change SharePoint Online Library permiss... - Power Platform Community (microsoft.com)