`hammer user-group external create` command fails with a `Could not create external user group` error
Environment
- Red Hat Satellite 6.11
Issue
Creating an external user group using the following command fails:
# hammer user-group external create --location-id <location_id> --organization-id <organization_id> --name <external_usergroup_name> --user-group <usergroup_name> --auth-source-id <id_of_linked_authentication_source>
Could not create external user group:
Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Resolution
Use the following command:
# hammer user-group external create --name <external_usergroup_name> --user-group <usergroup_name> --auth-source-id <id_of_linked_authentication_source>
instead of:
# hammer user-group external create --location-id <location_id> --organization-id <organization_id> --name <external_usergroup_name> --user-group <usergroup_name> --auth-source-id <id_of_linked_authentication_source>
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
Root Cause
There is no need to specify taxonomy options (location/organization) whilst creating user-group or user-group external.
Diagnostic Steps
- Confirm that creation of an external user group can be completed successfully via the Red Hat Satellite web UI.
- Confirm that no hammer defaults are set:
# hammer defaults list
-
PARAMETER | VALUE
-|-
SBR
Product(s)
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.