Cloning a role using the hammer command failed with error: Resource role not found by id 'x'.

Solution Verified - Updated -

Issue

  • Unable to clone the role in an organization using hammer command.
  • Below error observed when clone the role:
# hammer role clone --organization "Redhat" --name "Viewer" --new-name "Viewer_New" --description "New viewer role"
Could not clone the user role:
  Resource role not found by id '8'

Environment

  • Red Hat Satellite 6.x

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