MigrateUsersToClaims method (NTAccount, Boolean)
Collapse the table of content
Expand the table of content

SPWebApplication.MigrateUsersToClaims method (NTAccount, Boolean)

SharePoint 2013

Migrates users from legacy authentication to claims-based authentication.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public bool MigrateUsersToClaims(
	NTAccount account,
	bool removePermissionsAfter


Type: System.Security.Principal.NTAccount

The NTAccount that will perform the operation.

Type: System.Boolean

The account is given the correct permissions to perform the operation. Indicates whether the permission should be removed when the operation is completed.

Return value

Type: System.Boolean
true if successful; otherwise, false.
© 2016 Microsoft