LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rabbitmqctl-users

Manage RabbitMQ users and permissions

TLDR

List users
$ rabbitmqctl list_users
copy
Add user
$ rabbitmqctl add_user [username] [password]
copy
Delete user
$ rabbitmqctl delete_user [username]
copy
Change user password
$ rabbitmqctl change_password [username] [new_password]
copy
Set user tags
$ rabbitmqctl set_user_tags [username] [administrator]
copy
Set permissions for a user on a vhost
$ rabbitmqctl set_permissions -p [vhost] [username] ".*" ".*" ".*"
copy
List permissions of a specific user across all vhosts
$ rabbitmqctl list_user_permissions [username]
copy
Verify a user's credentials
$ rabbitmqctl authenticate_user [username] [password]
copy

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

Copied to clipboard
Kai