This section describes user management-related requests.
All database examples provided in this guide are specific to MySQL. If you use a different database, use syntax that is appropriate for your respective database. |
addGroupMember
changeOwnUser
Modifies the settings for the currently logged-in user.
Optional arguments
Field | Description |
---|---|
fullUserName |
The real world name of the user. |
The associated user email address. |
|
password |
The password for a particular user. |
passwordFile |
The path to a password file. If `--password ` is also specified, `--passwordFile ` overrides its value in the command line. |
createUser
Creates a new local user.
Required arguments
Field | Description |
---|---|
userName |
The unique name of the user. |
password |
The password for a particular user. |
Optional arguments
Field | Description |
---|---|
fullUserName |
The real world name of the user. |
The associated user email address. |
|
passwordFile |
The path to a password file. If `--password ` is also specified, `--passwordFile ` overrides its value in the command line. |
Example
cmtool createUser ec123 psword --fullUserName "Bob Smith" --email "ec123@ourhost.com"
Creates a new user named “ec123” whose real-world name is Bob Smith; with “psword” as his password.
If you do not wish to expose passwords on the command line, you can omit the password from the example above. Press the Enter key after typing the command string (without the password) and you will be prompted for the password. |
getAccessEntries
getGroups
Finds all groups known to the server. If “local” is true, returns local groups only.
getEffectivePermissions
Retrieves the permissions for the currently logged-in user.
Possible Results
`AgentsDelete ` `AgentsRead ` `AgentsWrite ` `BuildsDelete ` `BuildsRead ` `BuildsWrite ` `ClassesDelete ` `ClassesRead ` `ClassesWrite ` `EMakeImpersonate ` `EMakeInvoke ` `MaintenanceDelete ` `MaintenanceRead ` |
|
getPermissions
Retrieves permissions for a particular user or group.
Required arguments
Field | Description |
---|---|
principalType |
Can be user or group. |
entityName |
A user or group name in an access entry. |
Possible results
`AgentsDelete ` `AgentsRead ` `AgentsWrite ` `BuildsDelete ` `BuildsRead ` `BuildsWrite ` `ClassesDelete ` `ClassesRead ` `ClassesWrite ` `EMakeImpersonate ` `EMakeInvoke ` `MaintenanceDelete ` `MaintenanceRead ` |
|
getUser
Finds a specific user known to the server.
Result tags
Field | Description |
---|---|
The associated user email address. |
|
fullUserName |
The real world name of the user. |
groupName |
The unique name of the group. |
mutable |
True if the associated user or group record is modifiable. |
providerName |
The human-readable name configured for the directory provider of a specific user or group. |
userName |
The unique name of the user. |
getUsers
Finds all users known to the server. If “local” is true, returns local users only.
Optional arguments
Field | Description |
---|---|
pattern |
A wildcard pattern for a user name where “*” matches any character or SQL “like” string. If LDAP is set up for getting users, the * is the preferred wildcard, as % is not understood by LDAP (this limits the result set to records in the local database). |
local |
Can be true or false. If true, returns local users only. |
Result tags
See the getUser command for descriptions.
email fullUserNamemutable providerName userName
login
Logs in to the client with the appropriate credentials and creates a session file in the users home directory, which allows subsequent calls to cmtool to connect to the Cluster Manager.
Required arguments
Field | Description |
---|---|
userName |
The unique name of the user. |
password |
The password for a particular user. |
Optional arguments
Field | Description |
---|---|
passwordFile |
The path to a password file. If `--password ` is also specified, `--passwordFile ` overrides its value in the command line. |
Example
cmtool login ec123 bobs
Logs in a user named “ec123” whose password is “bobs”.
If you do not wish to expose passwords on the command line, you can omit the password from the example above. Press the Enter key after typing the command string (without the password) and you will be prompted for the password. |
modifyUser
Modifies a local user.
Optional arguments
Field | Description |
---|---|
fullUserName |
The real world name of the user. |
The associated user email address. |
|
password |
The password for a particular user. |
passwordFile |
The path to a password file. If `--password ` is also specified, `--passwordFile ` overrides its value in the command line. |
setBuildEndNotification
Enables/disables notification when builds of this class end for the currently logged-in user.
setPermissions
Creates or modifies permissions for a user or group. The permissions are a space-separated list of permission names.
Required arguments
Field | Description |
---|---|
principalType |
Can be user or group. |
entityName |
A user or group name in an access entry. |
permissions |
The list of permission flags for a particular entity. See the available permissions flags below. |
Possible results
|
|