As a user, I would like to be able to set my preferred locale via the CLI
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=845267
Description of problem:
As the admin user for a Katello server, I would like to be able to create user accounts and set their preferred locale from the CLI.
As a regular user I would like to be able to modify/set my preferred locale from the CLI.
Right now this is only exposed via the web ui and I strongly feel that we should make this option available. Imagine a user who only understands (i.e. read) one particular language that does not match the default locale for the Katello interface. How one one then change his own locale so he can use the web ui?
As this preference is something we actually store in the database, we should support setting the locale from the CLI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
#5 Updated by Tomáš Strachota over 7 years ago
- Status changed from New to Closed
This issue got fixed by the change in api docs (#9113).
hammer user create/update has option
hammer user update -h Usage: hammer user update [OPTIONS] Options: --admin ADMIN is an admin account --auth-source-id AUTH_SOURCE_ID --default-location-id DEFAULT_LOCATION_ID --default-organization-id DEFAULT_ORGANIZATION_ID --firstname FIRSTNAME --id ID --lastname LASTNAME --locale LOCALE User’s preferred locale --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. --locations LOCATION_NAMES Comma separated list of values. --login LOGIN User's login to search by --mail MAIL --new-login NEW_LOGIN --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. --organizations ORGANIZATION_NAMES Comma separated list of values. --password PASSWORD --timezone TIMEZONE User’s timezone -h, --help print help