editUser

Retrieves a user record for editing based on name. A saveUser operation must be used with this operation to save any changes to the record. A SOAP error envelope is returned if the operation fails.

To unlock the record without saving changes, use cancelSaveUser.

To edit a user based on record ID, use editUserByRecordID.

Note:   Changes made to global users through SOAP are also made to user records on the Helix ALM License Server.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
firstName string User’s first name.
middleInitials string User’s middle initials.
lastName string User’s last name.

Return value

Value Type
pUser CUser

Example

CUser usr = ttsdk.editUser(cookie, "Firstname", "", "Lastname");

 

try

{

usr.middleinitials = "M";

 

// The following line throws an exception if the operation fails.

ttsdk.saveUser(cookie, usr.firstname, usr.middleinitials, usr.lastname, usr);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveUser(cookie, usr.recordid);

}