RabbitMQ - List users and tags using the rabbitmqctl command

by
Jeremy Canfield |
Updated: February 09 2022
| RabbitMQ articles
The rabbitmqctl command with the list_users option can be used to list the user accounts.
rabbitmqctl list_users
Something like this should be returned. In this example, jane.doe has not been assigned any tags.
admin [administrator]
john.doe [management]
jane.doe []
The --formatter json option can be used to return the output in JSON.
rabbitmqctl list_users --formatter json
The rabbitmqctl set_user_tags command can be used to update a users account to have a certain tag.
rabbitmqctl set_user_tags "jane.doe" management
Did you find this article helpful?
If so, consider buying me a coffee over at