Hide Forgot
I dont think so its regression because I can see this in 6.2.z recent snaps as well. Also the reason I set blocker because its the complete and basic functionality missing from hammer end.
Same issue observed from API end as well.
This issue is affecting test case execution/automation of 6.3 feature from API and CLI end. And that is the reason We would like to get this in 6.3
Created redmine issue http://projects.theforeman.org/issues/20913 from this bug
Upstream bug assigned to mhulan@redhat.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20913 has been resolved.
Marek, I saw that functionality is working from API end but somehow I don't see any options from hammer CLI to update the role of the user or while creating the user. Is this expected? If yes, I think I cannot verify this bug as it also has CLI component in it to be fixed.
Jitendra, did you try hammer -r user create --help? The cache of API must be reloaded if you created it in with version. I can see --role-ids and --roles and verified it works with latest snap. satellite-6.3.0-22.0.el7sat.noarch tfm-rubygem-hammer_cli-0.11.0.1-1.el7sat.noarch
@Marek, Yeah Actually I had satellite 6.3 which was upgraded from 6.3 last snap (i.e snap 26 to snap 27), may be some issues with it. But I am checking on some other system, where I can see role options in create and update as well. Create: ---------------- # hammer user create --login user_verify --mail r.u@g.com --password changeverify --auth-source-id 1 --role-ids 36 User [user_verify] created # hammer user info --login user_verify Id: 9 Login: user_verify Name: Email: r.u@g.com Admin: no Last login: Authorized by: Internal Effective admin: no Locale: default Timezone: default Description: Default organization: Default location: Roles: Default role role_verify User groups: Inherited User groups: Created at: 2017/12/07 13:18:56 Update: ---------- # hammer user update --login user_verify --role-ids 36 User [user_verify] updated # hammer user info --login user_verify Id: 9 Login: user_verify Name: Email: r.u@g.com Admin: no Last login: Authorized by: Internal Effective admin: no Locale: default Timezone: Description: Default organization: Default location: Roles: Default role role_verify User groups: Inherited User groups: Created at: 2017/12/07 13:18:56 Updated at: 2017/12/07 13:22:04 So as per comment 17, 18 and above hammer data, both CLI and API has options to update the role in user and create user with role is present.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > > > For information on the advisory, and where to find the updated files, follow the link below. > > > > If the solution does not work for you, open a new bug report. > > > > https://access.redhat.com/errata/RHSA-2018:0336