2025-09-14 18:48:49 -06:00
|
|
|
# rabbitmqctl-users
|
|
|
|
|
|
|
|
|
|
> Manage RabbitMQ users, their permissions, and tags.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.rabbitmq.com/docs/management>.
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- List all users:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl list_users`
|
|
|
|
|
|
|
|
|
|
- Add a new user with a password:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl add_user {{username}} {{password}}`
|
|
|
|
|
|
|
|
|
|
- Delete an existing user:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl delete_user {{username}}`
|
|
|
|
|
|
|
|
|
|
- Change the password for a user:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl change_password {{username}} {{new_password}}`
|
|
|
|
|
|
|
|
|
|
- Set permissions for a user on a specific virtual host:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost}} {{username}} {{read}} {{write}} {{configure}}`
|
|
|
|
|
|
|
|
|
|
- Clear all permissions for a user on a specific virtual host:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost}} {{username}}`
|
|
|
|
|
|
|
|
|
|
- Assign one or more tags (e.g., administrator) to a user:
|
|
|
|
|
|
|
|
|
|
`rabbitmqctl set_user_tags {{username}} {{tag1}} [{{tag2}}]`
|