none
After migrating SharePoint 2010 to 2013, Users can't log in.

    Question

  • Hello,

    I just made a test SharePoint 2010 -> 2013 Migration. When users open the new link, they get "Sorry, this site hasn't been shared with you." If I take the user out and add him back in on the site, they are able to log in. But I don't want to do this for 100s of sites.

    Any suggestions?

    Friday, January 25, 2013 1:58 PM

Answers


  • Did you move from windows authentication to claims?

    I had the same problem, I had to redo my webapp by creating a new webapplication in NTLM non claims mode, then attach the content dbs, then convert it to claims.

    $wa = get-SPWebApplication "webappname"

    Convert-SPWebApplication -Identity $wa -To Claims –RetainPermissions -Verbose $wa.MigrateUsers($true)

    I did not think MigrateUsers was required even after running Convert-SPWebApplication, but until I did that I had duplicate entries all over.

    • Marked as answer by Levente Rög Wednesday, January 30, 2013 9:41 AM
    Friday, January 25, 2013 6:16 PM

All replies

  • Hi levidos,

    Try a full synchronization of the user profile service if you haven't already :-)

    Friday, January 25, 2013 3:08 PM

  • Did you move from windows authentication to claims?

    I had the same problem, I had to redo my webapp by creating a new webapplication in NTLM non claims mode, then attach the content dbs, then convert it to claims.

    $wa = get-SPWebApplication "webappname"

    Convert-SPWebApplication -Identity $wa -To Claims –RetainPermissions -Verbose $wa.MigrateUsers($true)

    I did not think MigrateUsers was required even after running Convert-SPWebApplication, but until I did that I had duplicate entries all over.

    • Marked as answer by Levente Rög Wednesday, January 30, 2013 9:41 AM
    Friday, January 25, 2013 6:16 PM

  • Thanks Christopher. Running that command after the migration solved the issue. I did not had to create a new Web Application.
    Wednesday, January 30, 2013 9:41 AM
  • How about new users that you create after the migration is complete?

    I am having this issue with any brand new user I create. I create them in AD, then I login to the site with farm admin, click "Share", add them there and it says the site is now shared with them but they still get the "Sorry, this site hasn't been shared with you." message.

    Tuesday, February 19, 2013 3:06 AM
  • $wa.MigrateUsers is now an obsolete API. http://msdn.microsoft.com/en-us/library/ee554321.aspx

    You should use the new $wa.MigrateUsersToClaims method: http://msdn.microsoft.com/en-us/library/jj172686.aspx

    In all cases, if you are going to migrate to claims, you should always migrate to claims in the SP2010 farm, then attach a claims content database to a claims web application in SP2013.

    The official guidance (http://technet.microsoft.com/en-us/library/gg251985.aspx) does not detail those two points yet.


    Independant SharePoint Consultant. Feel free to contact me. Blog: http://www.sharepoint.bg/radi Twitter: @RadiAtanassov

    Sunday, May 19, 2013 10:22 PM
  • THANK YOU!
    This worked for me, logged on locally as the farm admin, elevated permissions on SharePoint 2013 Management Shell

    $wa = get-SPWebApplication "SharePoint - 80...I had to put what I found in Central Admin here"
    Convert-SPWebApplication -Identity $wa -To Claims –RetainPermissions -Verbose
    $wa.MigrateUsers($true)
    $wa.MigrateUsersToClaims

    Monday, December 02, 2013 6:50 PM