How do I create or add a user to rabbitmq?
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
you want to add new user for RabbitMQ server just run below comments cmd :
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
You can use the rabbitmqctl tool - look for subtitle User management. The command to create a user is:
$ rabbitmqctl add_user myUser myPass
To make user an administrator run:
$ rabbitmqctl set_user_tags myUser administrator
Also if you use rabbitmq web UI - the management plugin you can do it quite easily, it's pretty intuitive.
If you want to do it programmatically you can also use rabbitmq rest API, also explained in (on?) the link for management plugin.