Bug 1502725

Summary: Org-Admin cannot create user through UI/CLI if they have more than one organization assigned
Product: Red Hat Satellite Reporter: Marek Hulan <mhulan>
Component: Organizations and LocationsAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Renzo Nuccitelli <rnuccite>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: akofink, bbuckingham, dcaplan, dhlavacd, dlobatog, jcallaha, jyejare, mhulan, rnuccite
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.15.6.26-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1489367 Environment:
Last Closed: 2018-02-21 16:54:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Marek Hulan 2017-10-16 14:26:24 UTC
This should allow users being org admin of 2 or more orgs.

Comment 2 Satellite Program 2017-10-16 16:17:46 UTC
Upstream bug assigned to mhulan

Comment 3 Satellite Program 2017-10-16 16:17:49 UTC
Upstream bug assigned to mhulan

Comment 5 Marek Hulan 2017-10-30 15:54:50 UTC
Could we please get QACK?

Comment 6 Satellite Program 2017-12-16 15:18:36 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21343 has been resolved.

Comment 8 Renzo Nuccitelli 2018-01-17 12:55:44 UTC
Verified on Satellite 6.3 snap 32 on UI and CLI:

# hammer -u orgadmin -p changeme user create --login user --mail user --password password --auth-source-id 1
Could not create the user:
  Organization ids Invalid organizations selection, you must select at least one of yours and have 'assign_organizations' permission.
# hammer -u orgadmin -p changeme user create --login user --mail user --password password --auth-source-id 1 --organization-ids 3
User [user] created
# hammer -u orgadmin -p changeme user create --login user2 --mail user --password password --auth-source-id 1 --organization-ids 3,4
User [user2] created

Comment 9 Satellite Program 2018-02-21 16:54:37 UTC
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