"sorry this site is not shared with you". users unable to access sites after migration to sharepoint 2016

after we migrated our SharePoint sites from 2007 to SharePoint 2016, existing users started getting error "sorry this site is not shared with you". newly added users could access the site.

this issue occurs because though the new SP2016 web application is using Claims authentication, the database is not claims aware yet.

we were able to fix this issue by running following powershell commands which converts the database to claims authentication & migrates the existing users to Claims format.


$wa = get-SPWebApplication "WebApplication "

Convert-SPWebApplication -Identity $wa -From Legacy -To Claims -RetainPermissions -Force -Verbose

$wa.MigrateUsers($true)


 

Comments

Popular posts from this blog

Error ‘Object reference not set to an instance of an object‘ on Review Job Definitions page

users are able to edit other users' mysites