Access Management Tasks
A new command-line script is available to manage users, groups etc. In previous releases adduser.bat and adduser.sh scripts are available but are deprecated in Release 7.4 and on.
The access-management script can be found in the system/scripts folder and is called accessmanagement.bat (for Windows) and accessmanagement.sh (for CentOS). When running this script without parameters or with the –help parameter the list of available commands and parameters will be returned.
USAGE:
accessmanagement <adduser|removeuser|resetpassword|addgroup|removegroup|extaccountinfo|addextaccount|removeextaccount> <company> [<action-params>]
--help | showing this help information |
adduser:
accessmanagement adduser <company> [<firstname> <middlename> <lastname> <email> <usercompany> [<password>] [<status>] [<pass_expires_after_n_days>']] [--createworkspace] [--groups=<grp1>[,<grp2>]]
company | showing this help information |
firstname | User's first name |
middlename | User's middle name |
lastname | User's last name |
User's e-mail address |
|
password | Initial password; if left empty a password will be generated |
status | Initial status; if left empty the status will be set to 'active' |
pass_expires_after_n_days | Number of days the password will be valid. |
--createworkspace | Create workspace |
--groups=<grp1>[,<grp2>] | Comma separated list of groups where to user should be added to |
removeuser:
accessmanagement removeuser <company> [<email>]
company | Company in the installation |
User's e-mail address |
resetpassword:
accessmanagement resetpassword <company> [<email> [<password>]]
company | Company in the installation |
User's e-mail address |
|
password | New password; if left empty a password will be generated |
addgroup:
accessmanagement addgroup <company> [<group-name>]
company | Company in the installation |
group-name | Group-name |
removegroup:
accessmanagement removegroup <company> [<group-name>]
company | Company in the installation |
group-name | Group-name |
extaccountinfo:
accessmanagement extaccountinfo <company>
addextaccount:
accessmanagement addextaccount <company> <url> <purpose> <user-name> <plain-text|RS256> <password>|<path-to-privatekey-pem>
company | Company in the installation |
url | Base URL of the remote server |
purpose | Purpose of account. Use accessmanagement extaccountinfo <company> to list possible purposes |
user-name | User-name |
password-type | plain-text|RS256 |
password | plain-text password or RS256 private key (PEM format) |
-to-privatekey-pem | Path to file containing RS256 private key (PEM format) |
removeextaccount:
accessmanagement removeextaccount <company> <url> <user-name>
company | Company in the installation |
url | Base URL of the remote server |
user-name | User-name |