How to create users in RabbitMQ


Previously we have learned about RabbitMQ Exchanges, RabbitMQ Queues and How to bind Exchanges with Queues. It is time to learn how to create user in RabbitMQ with different different Roles.

Followings are the set of Role Tags in RabbitMQ:

  • Admin
  • Monitoring
  • Policymaker
  • Management
  • Impersonator
  • None

Monitoring in RabbitMQ:

If any user has this Tag or Role then user can monitor all connections, channels and node related information.

Policymaker in RabbitMQ:

If any user has this Tag or Role then user can manage all the policy and parameters for VHOST(only for which they have access).

Management in RabbitMQ:

If any user has this Tag or Role then user can access web management plugin.

Administrator in RabbitMQ:

If any user has this Tag or Role then user can manage each and everything in RabbitMQ.

  • Manager users
  • VHOST
  • Permission
  • Close other user’s connections
  • Manage policies
  • etc

Let’s see example how to create user in RabbitMQ and assign respective privileges:

  • Open Browser¬†http://localhost:15672¬†(guest/guest)
  • Click on Admin Tab
    • RabbitMQ_User_Create
    • RabbitMQ_User_Created
    • Click on username as just created (example: oriontutorials)
    • RabbitMQ_User_Created_selected
    • Now click on set permission button as highlighted above, and we are done with user permission and click on Admin tab and check below image.
    • RabbitMQ_User_After_Permission

Next Topic: RabbitMQ Virtual Hosts


%d bloggers like this: