Chapter 7. Users and Permissions


Expand
Table 7.1. Users and Permissions
SubcommandDescription and tasks

user
org

Create a user:

hammer user create \
--login user_name \
--mail user_mail \
--auth-source-id 1 \
--organization-ids org_ID1,org_ID2,...
Copy to Clipboard Toggle word wrap

Add a role to a user:

hammer user add-role \
--id user_id \
--role role_name
Copy to Clipboard Toggle word wrap

user-group

Create a user group:

hammer user-group create \
--name ug_name
Copy to Clipboard Toggle word wrap

Add a role to a user group:

hammer user-group add-role \
--id ug_id \
--role role_name
Copy to Clipboard Toggle word wrap

role

Create a role:

hammer role create \
--name role_name
Copy to Clipboard Toggle word wrap

filter

Create a filter and add it to a role:

hammer filter create \
--role role_name \
--permission-ids perm_ID1,perm_ID2,...
Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat