How do I create or add a user to rabbitmq?

Tobias Gassmann picture Tobias Gassmann · Nov 5, 2016 · Viewed 55.9k times · Source

This seems like a question that should be easily be googleable. It is not though. Can anybody help?

How do I create a new user for rabbitmq?

Answer

John Kitonyo picture John Kitonyo · Sep 12, 2018

I have found this very useful

This adds a new user and password

rabbitmqctl add_user username password

This makes the user a administrator

rabbitmqctl set_user_tags username administrator

This sets permissions for the user

rabbitmqctl set_permissions -p / username ".*" ".*" ".*"

See more here https://www.rabbitmq.com/rabbitmqctl.8.html#User_Management