SPAcl<T>.MigrateUserAccount method (String, String)

Changes the access control list (ACL) to use the newPrincipalName name in place of oldPrincipalName.

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

Syntax

'Declaration
Public Function MigrateUserAccount ( _
    oldPrincipalName As String, _
    newPrincipalName As String _
) As Boolean
'Usage
Dim instance As SPAcl
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim returnValue As Boolean

returnValue = instance.MigrateUserAccount(oldPrincipalName, _
    newPrincipalName)
public bool MigrateUserAccount(
    string oldPrincipalName,
    string newPrincipalName
)

Parameters

  • oldPrincipalName
    Type: System.String

    The name of the old principal.

  • newPrincipalName
    Type: System.String

    The name of the new principal.

Return value

Type: System.Boolean
true if user account has been migrated; otherwise false.

See also

Reference

SPAcl<T> class

SPAcl<T> members

MigrateUserAccount overload

Microsoft.SharePoint.Administration namespace