Unable to add organization to a user via Hammer

Solution Verified - Updated -

Issue

When trying to assign an organization to a user via Hammer

#hammer organization add-user --id 1 --user "testuser"

it fails with the following message:

Could not associate the user:
  Locations you cannot remove locations that are used by hosts or inherited.

or similar (for example, concerning domains).

However, doing the same with WebUI works.

Environment

Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content