Forum Discussion
Export-spWEb and import-SPWEB user includeusersecurity
Hello there,
I have a sharepoint Farm with subscription edition and i am trying to test the export-spweb and import-spweb by exporting a document library from Site1 and to import to site2.
i have assigned some permissions on site1 level and on the file level and i am expecting that these permissions will migrated to site 2, however this is not happening the content is migrated and i can see users migrated when running get-spuser on site 2 but i dont users assigned permissions on the site level neither on the file level...
i am running the below commands
Export-SPWeb -Identity "http://portal1.XXXX/sites/export/" -ItemUrl "shared documents/HR" -Path C:\export6.cmp -IncludeUserSecurity -Verbose -Force
Import-SPWeb -Identity "http://portal1.XXXXl/sites/export2" -Path C:\export6.cmp -IncludeUserSecurity -Force
PS C:\WINDOWS\system32> Get-SPUser -Web http://portal1.XXX/sites/export2 |Ft USerlogin
UserLogin
---------
i:0#.w|XXXX\administrator
c:0(.s|true
i:0#.w|XXX\-ibrahim
i:0#.w|XXX\sfhtest1
i:0#.w|XXX\sfhtest2
SHAREPOINT\system
the SFHtest1 is an owner in site 1 but when trying to access the site 2 using the same user i am getting access denied.
can someone explain please what i missing and what includeusersecurity is supposed to do?
Thank You.