Administration

Logging in as an administrator it's possible to perform other commands. The master database stores all administration data. Users and permissions are in the homonym maps in previous cited database.

User management

Add or update an user

To add a new user run the following command:

> adduser <username> <password>

  • username: the username used to log in.
  • password: the password used to log in.

If the user is added the client shows a success message. If a user with that username already exists it shows an error message.

Remove an user

To remove an existing user run the following command:

> removeuser <username>

  • username: the username to remove.

If the user is removed the client shows a success message. If a user with that username doesn't exist it shows an error message.

NOTICE: if a user is removed all its permissions are removed.

List users

To get the list of all the users run the following command:

> listuser

User permissions management

Add or update an user permission

To add or update an user permission for a specific database run the following command:

> addpermission <username> <database_name> <permission_type>

  • username: the user username.
  • database_name: the database name.
  • permission_type: the permission type, it can be read or readwrite.

If the user permission is added the client shows a success message. If an user with that username or a database with that name doesn't exists it shows ad error.

Remove an user permission

To remove an existing user permission run the following command:

> removepermission <username> <database_name>

  • username: the user username.
  • database_name: the database name.

If the user permission is removed the client shows a success message. If permission for that database of that username doesn't exists it shows an error.

List user permissions

To get the list of the permissions an user has, run the following command:

> listpermissions <username>

  • username: the user username.

Reload the settings

If you change the actor_properties.json file and you want to apply the changes, run the following command:

> refreshsettings

results matching ""

    No results matching ""