1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 14:55:26 +02:00
tldr/pages/common/rabbitmqctl-users.md
ramadasmr 5e983d927b
rabbitmqctl-{cluster,users,vhosts}: add page (#17254)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-07-19 04:56:11 +03:00

854 B

rabbitmqctl-users

Manage RabbitMQ users, their permissions, and tags. More information: https://www.rabbitmq.com/management.html.

  • List all users:

rabbitmqctl list_users

  • Add a new user with a password:

rabbitmqctl add_user {{username}} {{password}}

  • Delete an existing user:

rabbitmqctl delete_user {{username}}

  • Change the password for a user:

rabbitmqctl change_password {{username}} {{new_password}}

  • Set permissions for a user on a specific virtual host:

rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost}} {{username}} {{read}} {{write}} {{configure}}

  • Clear all permissions for a user on a specific virtual host:

rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost}} {{username}}

  • Assign one or more tags (e.g., administrator) to a user:

rabbitmqctl set_user_tags {{username}} {{tag1}} [{{tag2}}]