Project

General

Profile

Actions

Bug #34123

closed

The 'Mail enabled' setting cannot be switched with the hammer user command.

Added by Oleh Fedorenko almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

b'Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2015757 \n\n*Description of problem:*\n\n\'Mail enabled\' setting cannot be switched with the hammer user command.\n\'hammer user create\'/\'hammer user update\' command allows you to configure email settings. \nHowever, it seems that it cannot be disabled(Uncheck "Mail Enabled" in Satellite WEB UI). \n\nAdminister >> Users >> select and edit the Username >> Email Preferences >> Mail enabled.\n\n\nhammer user create\n------------------------------------\nUsage:\n hammer user create [OPTIONS]\n\nOptions:\n --admin ADMIN Is an admin account\n One of true/false, yes/no, 1/0.\n --ask-password ASK_PW One of true/false, yes/no, 1/0.\n --auth-source AUTH_SOURCE_NAME Name to search by\n --auth-source-id AUTH_SOURCE_ID\n --default-location DEFAULT_LOCATION_NAME Default location name\n --default-location-id DEFAULT_LOCATION_ID\n --default-organization DEFAULT_ORGANIZATION_NAME Default organization name\n --default-organization-id DEFAULT_ORGANIZATION_ID\n --description DESCRIPTION\n --firstname FIRSTNAME\n --lastname LASTNAME\n --locale LOCALE User\'s preferred locale\n Possible value(s): \'ca\', \'de\', \'en\', \'en_GB\', \'es\', \'fr\', \'gl\', \'it\', \'ja\', \'ko\', \'nl_NL\', \'pl\', \'pt_BR\', \'ru\', \'sv_SE\', \'zh_CN\', \'zh_TW\'\n --location LOCATION_NAME Location name\n --location-id LOCATION_ID\n --location-ids LOCATION_IDS REPLACE locations with given ids\n Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --location-title LOCATION_TITLE Location title\n --location-titles LOCATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --login LOGIN\n --mail MAIL\n --organization ORGANIZATION_NAME Organization name\n --organization-id ORGANIZATION_ID Organization ID\n --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.\n Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --organization-title ORGANIZATION_TITLE Organization title\n --organization-titles ORGANIZATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --password PASSWORD Required unless user is in an external authentication source\n --role-ids ROLE_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --roles ROLE_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --timezone TIMEZONE User\'s timezone\n--------------------------------\n\nhammer user update\n-------------------------------\nUpdate a user\n\nUsage:\n hammer user update [OPTIONS]\n\nOptions:\n --admin ADMIN Is an admin account\n One of true/false, yes/no, 1/0.\n --ask-password ASK_PW One of true/false, yes/no, 1/0.\n --auth-source AUTH_SOURCE_NAME Name to search by\n --auth-source-id AUTH_SOURCE_ID\n --current-password CURRENT_PASSWORD Required when user want to change own password\n --default-location DEFAULT_LOCATION_NAME Default location name\n --default-location-id DEFAULT_LOCATION_ID\n --default-organization DEFAULT_ORGANIZATION_NAME Default organization name\n --default-organization-id DEFAULT_ORGANIZATION_ID\n --description DESCRIPTION\n --firstname FIRSTNAME\n --id ID\n --lastname LASTNAME\n --locale LOCALE User\'s preferred locale\n Possible value(s): \'ca\', \'de\', \'en\', \'en_GB\', \'es\', \'fr\', \'gl\', \'it\', \'ja\', \'ko\', \'nl_NL\', \'pl\', \'pt_BR\', \'ru\', \'sv_SE\', \'zh_CN\', \'zh_TW\'\n --location LOCATION_NAME Location name\n --location-id LOCATION_ID\n --location-ids LOCATION_IDS REPLACE locations with given ids\n Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --location-title LOCATION_TITLE Location title\n --location-titles LOCATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --login LOGIN User\'s login to search by\n --mail MAIL\n --new-login NEW_LOGIN\n --organization ORGANIZATION_NAME Organization name\n --organization-id ORGANIZATION_ID Organization ID\n --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.\n Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --organization-title ORGANIZATION_TITLE Organization title\n --organization-titles ORGANIZATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --password PASSWORD Required unless user is in an external authentication source\n --role-ids ROLE_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --roles ROLE_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash\n --timezone TIMEZONE User\'s timezone\n------------------------------------\n\n*Version-Release number of selected component (if applicable):*\nSatellite6.9\n\n*How reproducible:*\n100%\n\n*Steps to Reproduce:*\n1.\n2.\n3.\n\n*Actual results:*\n\'Mail enabled\' setting cannot be switched with the hammer user command.\n\n*Expected results:*\n\'Mail enabled\' setting can be switched with the hammer user command.\n\n*Additional info:*'


Related issues 1 (0 open1 closed)

Blocks Hammer CLI - Feature #34180: Add mail_enabled option to list and info command ClosedAdi AbramovitchActions
Actions

Also available in: Atom PDF