Sorry for creating a new thread but I can't add a comment to the original thread here.

Just wanna know if it's possible to use UPN instead of SAM account (domain\user)? I.e:

$wa = Get-SPWebApplication http://yourWebAppUrl 
$acc = 'UPN'

Our users login via email (UPN) + password, rather than using domain\user.

Here's what I've got:

$wa = Get-SPWebApplication https://yourWebAppURL
$acc = "domain\farm admin"
$arguments = New-Object Microsoft.SharePoint.Administration.SPWebApplication+SPMigrateUserParameters

$wa.MigrateUsersToClaims($acc, $false, $arguments)

I've made sure that my database is in index 4. Checked by running $arguments or just running $wa.contentdatabases.

Well, I still couldn't login with my account. I could however login with my site collection admin which have setup on the SharePoint site.

  • What authentication method u are using? What's the reason for user migration?
    – Waqas Sarwar MVP
    Commented Jun 14, 2017 at 3:17
  • I'm using claims authentication. I'm not migrating users, i'm migrating a site collection from 2010 (which uses classic authentication) to 2013 (claims). Commented Jun 14, 2017 at 4:28

1 Answer 1


As long as your users are authenticating via Windows auth (classic or claims), they can use any valid format, including UPN.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.