RabbitMQ - List user permissions using the rabbitmqctl command

The rabbitmqctl command with the list_user_permissions option can be used to list a users permissions. In this example, John Doe's permission will be listed.

rabbitmqctl list_user_permissions john.doe

 

If something like this is returned, this means John Doe has not been granted permission to any virtual hosts. In this scenarion, you'll probably want to use the set_permissions option to update John Doe's account to have certain permissions to certain objects.

Listing permissions for user "john.doe"

 

On the other hand, if the user has permission, something like this should be returned. In this example, John Doe has the following permissions:

  • Virtual Host = /
  • Configure regexp = .*
  • Write regexp = .*
  • Read regexp = .*
Listing permissions for user "john.doe"
/       .*      .*      .*

 

The --formatter json option can be used to return the output in JSON.

rabbitmqctl list_permissions --formatter json



Did you find this article helpful?

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

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 f0bd8 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   |