ISPUserMigrator.MigrateUserAccount method

Migrates the specified user account from one login name to another, optionally enforcing the Active Directory Domain Services Security ID (SID) history.

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

Syntax

'Declaration
Function MigrateUserAccount ( _
    oldLogin As String, _
    newLogin As String, _
    enforceSidHistory As Boolean _
) As Boolean
'Usage
Dim instance As ISPUserMigrator
Dim oldLogin As String
Dim newLogin As String
Dim enforceSidHistory As Boolean
Dim returnValue As Boolean

returnValue = instance.MigrateUserAccount(oldLogin, _
    newLogin, enforceSidHistory)
bool MigrateUserAccount(
    string oldLogin,
    string newLogin,
    bool enforceSidHistory
)

Parameters

  • oldLogin
    Type: System.String

    A string that contains the old login name.

  • newLogin
    Type: System.String

    A string that contains the new login name.

Return value

Type: System.Boolean
true if at least the entry for the user was migrated.

See also

Reference

ISPUserMigrator interface

ISPUserMigrator members

Microsoft.SharePoint.Administration namespace