SPServiceApplication.MigrateGroupAccount Method

Migrates a group account in SharePoint Foundation to a new login name.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Friend Overridable Function MigrateGroupAccount ( _
    oldPrincipalName As String, _
    newPrincipalName As String _
) As Boolean
'Usage
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim returnValue As Boolean

returnValue = Me.MigrateGroupAccount(oldPrincipalName, _
    newPrincipalName)
protected internal virtual bool MigrateGroupAccount(
    string oldPrincipalName,
    string newPrincipalName
)

Parameters

  • oldPrincipalName
    Type: System.String

    A string that contains the old login name.

  • newPrincipalName
    Type: System.String

    A string that contains the new login name.

Return Value

Type: System.Boolean
Returns a Boolean value of true if the migration was successful, otherwise false.

See Also

Reference

SPServiceApplication Class

SPServiceApplication Members

Microsoft.SharePoint.Administration Namespace