Hi,
I have an issue where we have upgraded a site collection to SharePoint 2010 Mode. So have done Test-SPContentDatabase and Mount etc. I then moved these as host url sites collections under one Web application as recommended by Microsoft. Problem I have is when I view the site in SharePoint 2010 mode I am able to login as myself as I was added wioth script below. However, when I try and login as the Site Collection Owner i.e. sp_admin. I get Access Denied. So I go into the site Collection and add sp_admin again then I can login.
Is this a case of SIDs gettiung corrupt? Here is the script I ran after mounting each web application.
$WebApp = Get-SPWebApplication "http://mysitecoll"
$WebApp.UseClaimsAuthentication = 1;
$webApp.Update()
$account = "ourdomain\mypersonallogin"
$account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncodedString()
$wa = get-SPWebApplication $WebApp
$zp = $wa.ZonePolicies("Default")
$p = $zp.Add($account,"PSPolicy")
$fc=$wa.PolicyRoles.GetSpecialRole("FullControl")
$p.PolicyRoleBindings.Add($fc)
$wa.Update()
$wa = $WebApp
$wa.MigrateUsers($true)
$wa.ProvisionGlobally()
Am I doing this correctly? Is this going to be expected behaviour in SharePoint 2010 mode?
Thanks.
John.
- Edited by John Guilbert Friday, January 30, 2015 10:00 AM