Bootstrap FreeKB - RabbitMQ - Grant user permissions using the rabbitmqctl command
RabbitMQ - Grant user permissions using the rabbitmqctl command

Updated:   |  RabbitMQ articles

The rabbitmqctl command with the set_permissions option can be used to update a users account with certain permissions to certain objects. Before issuing the set_permissions command, you will usually want to use the list_user_permissions option to list the users current permissions.

You would use the -p option followed by a virtual host. In this example, virtual host / is specified. The last three options are:

  • Configure regexp = the objects the user has configure access to (e.g. .*)
  • Write regexp = the objects the user has write access to (e.g. .*)
  • Read regexp = the objects the user has read access to (e.g. .*)
rabbitmqctl set_permissions -p / john.doe ".*" ".*" ".*"

 

Something like this should be returned.

Setting permissions for user "john.doe" in vhost "/"

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 4fcd15 in the box below so that we can be sure you are a human.