addGlobalUser

Imports a global user from the Helix ALM License Server to the Helix ALM database and current project. If a user with the same username and name already exists in the project, the user is not imported. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pGlobalUser CGlobalUser Global user field values and properties. See getGlobalUserList to retrieve a list of global users.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CGlobalUser usr = new CGlobalUser();

 

usr.loginname = "globaluser";

usr.name = "User, Global";

 

ttsdk.addGlobalUser(cookie, usr);