2.25.0.0-b410
Deepti-yb
tagged this
03 Dec 07:41
Summary: Password reset for logged in user: ``` yba user reset-password -h Reset password of currently logged in user in YugabyteDB Anywhere Usage: yba user reset-password [flags] Aliases: reset-password, reset Examples: yba user reset-password \ --current-password <current-password> --new-password <new-password> Flags: --current-password string [Required] The current password of the user. --new-password string [Required] The new password of the user. -h, --help help for reset-password Global Flags: -a, --apiToken string YugabyteDB Anywhere api token. --config string Config file, defaults to $HOME/.yba-cli.yaml --debug Use debug mode, same as --logLevel debug. --disable-color Disable colors in output. (default false) -H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000") -l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info") -o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table") --timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s) --wait Wait until the task is completed, otherwise it will exit immediately. (default true) ``` Update user ``` yba user update Update a user in YugabyteDB Anywhere Usage: yba user update [flags] Aliases: update, edit Examples: yba user update --email <user-email> --timezone "America/Los_Angeles" Flags: -e, --email string [Required] The email of the user to be updated. --timezone string [Optional] The timezone of the user to be updated. -h, --help help for update Global Flags: -a, --apiToken string YugabyteDB Anywhere api token. --config string Config file, defaults to $HOME/.yba-cli.yaml --debug Use debug mode, same as --logLevel debug. --disable-color Disable colors in output. (default false) -H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000") -l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info") -o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table") --timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s) --wait Wait until the task is completed, otherwise it will exit immediately. (default true) ``` Test Plan: `yba user reset-password --current-password Password#123 --new-password Password#1234` ``` Email UUID Role User Type Primary Creation Date [email protected] 829a8650-46af-4228-bd11-70a3a9d413e2 Admin local false Thu, 21 Nov 2024 16:22:02 +0000 ``` `yba user update -e [email protected] --timezone "America/Los_Angeles"` ``` Email UUID Role User Type Primary Creation Date [email protected] 829a8650-46af-4228-bd11-70a3a9d413e2 Admin local false Thu, 21 Nov 2024 16:22:02 +0000 ``` Reviewers: skurapati Reviewed By: skurapati Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D40415