Export (0) Print
Expand All

SPServiceApplication.MigrateGroupAccount method

SharePoint 2013

Migrates group.

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

protected internal virtual bool MigrateGroupAccount(
	Guid subscriptionId,
	string oldPrincipalName,
	string newPrincipalName,
	IEnumerable<byte[]> allowedOldBinaryIds,
	byte[] newBinaryId
)

Parameters

subscriptionId
Type: System.Guid

Targeted subscription ID or Guid.Empty to target all subscriptions

oldPrincipalName
Type: System.String

Old logon name

newPrincipalName
Type: System.String

New logon name

allowedOldBinaryIds
Type: System.Collections.Generic.IEnumerable<[]>

A list of valid binary IDs. Migrate only the items which binary IDs are in the list. If it is null, there is no restriction for the old binary ID.

newBinaryId
Type: []

New binary ID.

Return value

Type: System.Boolean
true if service migrated group, false otherwise.
Show:
© 2014 Microsoft