UserProfileManager.AddLeader Method

Adds a new leader to the user profile database.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public void AddLeader(
	string accountName
)

Parameters

accountName
Type: System.String

The account name of the leader to add.

ExceptionCondition
ArgumentException

accountName is null or empty.

DuplicateEntryException

The user specified by the accountName parameter is already a leader.

UserNotFoundException

The user specified by the accountName parameter does not exist in the user profile database.

AccountNotValidatedException

The user specified by the accountName parameter has a manager.

This method adds the leader specified by the accountName parameter to the user profile database.

Show: