Sharepoint 2010
I have 3 sets of Document Libraries that contain a number of documents organised in folders. The idea is to be able to instantiate any of those 3 document libraries for any site in the collection. So that the structure is replicated upon creation.
The issue is that the libraries have a constrained set of permissions that are different from the parent (stop inheriting permissions option). But I've noticed that when I instantiate any of the library templates the permissions aren't kept.
Is there a way to store a set of specific permissions within the template itself?
For example, this could be the structure for one of the document libraries:
- Document 1 (accessible by all)
- Document 2 (accessible by all)
- Folder 1 (accessible by all)
- >> Document 3
- >> Document 4
- >> Document 5
- Folder 2 (only accessible by the management group)
- >> Document 6
- >> Document 7
-------EDIT---------
I have tried with the Powershell cmdlets
Exported the library with:
Export-SPWeb -Identity http://server/sites/site1/SampleLibrary -path "sampleLibraryExport.cmp" -IncludeUserSecurity -ItemUrl "3rd Party Engagements"
Deleted the library and reimported again with:
Import-SPWeb -Identity http://server/sites/site1/SampleLibrary -path "sampleLibraryExport.cmp" -IncludeUserSecurity
However, the custom permissions are gone and have now been set to the farm-admin account and inherited across files
Thanks,
Jaume