3

We had to restore a list (which has versionsing enabled) in our PROD enviornment SP 2010 August CU 2012. We used the following command metioned below:

Import-SPWeb http://example.com/projects/myList -path "E:\backups\myList\myList.cmp" -IncludeUserSecurity -UpdateVersions overwrite

The list was restored, however the users that did not exist in the organisation any longer were replaced with the user who performed the restore.

This is odd because we userd the correct flag as per the technet article Import-SPWeb. What's the point of having versioning if we loose the details?

Has anyone else faced this issue?

3
  • 1
    Was the -IncludeUserSecurity flag used during export? Commented Apr 10, 2013 at 4:02
  • Yes it was. We used CA unattach database restore a list option and include user security and all versions Commented Apr 10, 2013 at 4:24
  • Are unique permissions used for items in the list? The PowerShell command "Import-SPWeb" does not restore unique permissions even if the parameter "-IncludeUserSecurity" is used.
    – TempaC
    Commented May 5, 2015 at 14:23

1 Answer 1

1

If the user no longer exists the info about the user is lost during the restore.

It is very similar to this situation: you want to create new item and there is a lookup field. You can only select existing values. That is what happens during import - the items are "recreated" and when the user is not found the "dummy" value is added. In this case the username who runs the restore.

The flag IncludeUserSecurity is for user permissions, not to include non-existing users.

Try to check ShareGate tool specifications, they might be successful in solving this problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.