rabbitmqctl-users
Manage RabbitMQ users and permissions
TLDR
List users
$ rabbitmqctl list_users
Add user$ rabbitmqctl add_user [username] [password]
Delete user$ rabbitmqctl delete_user [username]
Change user password$ rabbitmqctl change_password [username] [new_password]
Set user tags$ rabbitmqctl set_user_tags [username] [administrator]
Set permissions for a user on a vhost$ rabbitmqctl set_permissions -p [vhost] [username] ".*" ".*" ".*"
List permissions of a specific user across all vhosts$ rabbitmqctl list_user_permissions [username]
Verify a user's credentials$ rabbitmqctl authenticate_user [username] [password]
SYNOPSIS
rabbitmqctl usercommand [options_]
DESCRIPTION
rabbitmqctl user commands manage RabbitMQ users and permissions. Create users, set passwords, assign roles, and configure vhost access. Part of RabbitMQ server management. These commands only manage users in the internal RabbitMQ database; users from alternative authentication backends (such as LDAP) cannot be managed with these commands.
PARAMETERS
list_users
List all users.add_user user pass
Create user.delete_user user
Remove user.change_password user pass
Change password.clear_password user
Remove password for a user, preventing password-based login.authenticate_user user pass
Verify whether credentials match a user's stored authentication.set_user_tags user tags ...
Set role tags (administrator, monitoring, management, policymaker). Replaces all existing tags.set_permissions [-p vhost] user conf write read
Set vhost permissions using regex patterns for configure, write, and read operations.clear_permissions [-p vhost] user
Revoke all permissions for a user on a vhost.list_permissions [-p vhost]
List all users with access to a vhost and their permissions.list_user_permissions user
List all vhosts a user has access to and their permissions.-p vhost
Target virtual host (default: "/").
SEE ALSO
rabbitmqctl(1), rabbitmqctl-vhosts(1)
