Is it possible to restore a Document Library or List with unique permissions from an unattached content database with the unique permissions still intact?
Normally the steps to restore a Document Library or List from an unattached content database are:
Export:
- Go to central administration > Backup and Restore > Recover data from an unattached content database;
- select the desired Document Library or List;>
- Specify a filename ending in ".cmp" and select export Full Security;
- Export;
Import:
Open PowerShell and perform the following script:
Import-SPWeb -identity htttp://site/sitecollection -path D:\documentlibrary.cmp -includeUserSecurity
After having performed these steps the Document Library / List is restored, but the unique permissions are not restored!
It appears that the parameter IncludeUserSecurity does not restore the permissions of the Files / Document Library / List when it has unique permissions (no permission inheritance).
The TechNet article seems to confirm my that the Parameter IncludeUserSecurity is not capable of restoring permissions when unique permissions are used:
IncludeUserSecurity: Preserves the user security settings except for SPLists that have broken inheritance and item level permissions set.
How to restore the unique permissions aswell?