SPAcl<T>.MigrateUserAccount Method
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)
Available in Sandboxed Solutions: No
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.StringThe name of the old principal.
newPrincipalName
Type: System.StringThe name of the new principal.
Return Value
Type: System.Boolean
true if user account has been migrated; otherwise false.