promoteUser
Promotes a local user to a global user. A local user only exists in the project. A global user exists on the Helix ALM License Server and may be shared with other Helix ALM products. A SOAP error envelope is returned if the operation fails.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
localUser | string | Name of the local user. See Formatting name fields for formatting information. |
globalUser | string | Name of the global user that the local user inherits user record information from. See Formatting name fields for formatting information. |
loginname | string | Username used to log in. Required if globalUser is not specified. Must be unique. |
password | string | Password used to log in. |
Return value
Value | Type | Notes |
---|---|---|
result | int | 0 indicates success. Check the return value in case of an error. |
Example
// This example promotes the localuser user as a new global user, so loginname must be specified
ttsdk.promoteUser(cookie, "Lastname, Firstname", "", "username", "password");