SPAcl<T>.MigrateUserAccount method (String, String, IEnumerable<Byte[]>)
Changes the ACLs to use 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, _
allowedOldBinaryIds As IEnumerable(Of Byte()) _
) As Boolean
'Usage
Dim instance As SPAcl
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim allowedOldBinaryIds As IEnumerable(Of Byte())
Dim returnValue As Boolean
returnValue = instance.MigrateUserAccount(oldPrincipalName, _
newPrincipalName, allowedOldBinaryIds)
public bool MigrateUserAccount(
string oldPrincipalName,
string newPrincipalName,
IEnumerable<byte[]> allowedOldBinaryIds
)
Parameters
oldPrincipalName
Type: System.StringLogon name of the old principal
newPrincipalName
Type: System.StringLogon name of the new principal
allowedOldBinaryIds
Type: System.Collections.Generic.IEnumerable<[]>A list of allowed binary identifiers to migrate from. If it is null, there is no restriction for the old
Return value
Type: System.Boolean
true if user was migrated, false otherwise.