# `manage` The MAS CLI provides several subcommands for managing users and configurations Global options: - `--config `: Path to the configuration file. - `--help`: Print help. ## `manage add-email` Add an email address to the specified user. ``` $ mas-cli manage add-email ``` ## `manage verify-email` [DEPRECATED] Mark an email address as verified. ``` $ mas-cli manage verify-email ``` ## `manage set-password` Set a user password. Options: - `--ignore-complexity`: Don't enforce that the password provided is above the minimum configured complexity. ``` $ mas-cli manage set-password --ignore-complexity ``` ## `manage issue-compatibility-token` Issue a compatibility token for a user. Options: - `--device-id `: Device ID to set in the token. If not specified, a random device ID will be generated. - `--yes-i-want-to-grant-synapse-admin-privileges`: Whether the token should be given admin privileges. ``` $ mas-cli manage issue-compatibility-token --device-id --yes-i-want-to-grant-synapse-admin-privileges ``` ## `manage provision-all-users` Trigger a provisioning job for all users. ``` $ mas-cli manage provision-all-users ``` ## `manage kill-sessions` Kill all sessions for a user. Options: - `--dry-run`: Do a dry run, ie see which sessions would be killed. ``` $ mas-cli manage kill-sessions --dry-run ``` ## `manage lock-user` Lock a user. Options: - `--deactivate`: Whether to deactivate the user. ``` $ mas-cli manage lock-user --deactivate ``` ## `manage unlock-user` Unlock a user. ``` $ mas-cli manage unlock-user ``` ## `manage register-user` Register a user. This will interactively prompt for the user's attributes unless the `--yes` flag is set. It bypasses any policy check on the password, email, etc. Options: - `--username `: Username to register. - `--password `: Password to set. - `--email `: Email to add. Can be specified multiple times. - `--upstream-provider-mapping `: Upstream OAuth 2.0 provider mapping. Can be specified multiple times. - `--admin`: Make the user an admin. - `--no-admin`: Make the user not an admin. - `--yes`: Don't ask questions, just do it. - `--display-name `: Set the user's display name. - `--ignore-password-complexity`: Don't enforce that the password provided is above the minimum configured complexity. ``` $ mas-cli manage register-user ```