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

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 "/"

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |