You should have everything you need with the user commands in rabbitmqctl.
Try:
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.9-management
Then:
docker exec rabbitmq rabbitmqctl
...
Users:
add_user Creates a new user in the internal database. This user will have no permissions for any virtual hosts by default.
authenticate_user Attempts to authenticate a user. Exits with a non-zero code if authentication fails.
change_password Changes the user password
clear_password Clears (resets) password and disables password login for a user
clear_user_limits Clears user connection/channel limits
delete_user Removes a user from the internal database. Has no effect on users provided by external backends such as LDAP
list_user_limits Displays configured user limits
list_users List user names and tags
set_user_limits Sets user limits
set_user_tags Sets user tags
...
And:
docker exec rabbitmq rabbitmqctl list_users
Listing users ...
user tags
guest [administrator]
Hii use rabbitmqadmin or rabbitmqctl
and create an ldap user with tags,
How to get with cli all tags from users ?
brecause some time, have issue with "Not Managment user"