mardi 3 février 2015

After migrating my web application from SP2010 to SP2013, I get access denied error

I successfully migrated my web app from SP2010 to SP2013 without error or warnings


enter image description here


enter image description here


But when I tried to access the migrated site, it gives me an Access Denied Error


I already do this from my SP2010 environment (before proceeding to backing up the content database)



$WebAppName = "http://<yourWebAppUrl>"
$wa = get-SPWebApplication $WebAppName
$wa.UseClaimsAuthentication = $true
$wa.Update()

$account = "yourDomain\yourUser"
$account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncodedString()
$wa = get-SPWebApplication $WebAppName
$zp = $wa.ZonePolicies("Default")
$p = $zp.Add($account,"PSPolicy")
$fc=$wa.PolicyRoles.GetSpecialRole("FullControl")
$p.PolicyRoleBindings.Add($fc)
$wa.Update()

$wa.MigrateUsers($true)

$wa.ProvisionGlobally()

Aucun commentaire:

Enregistrer un commentaire