5.用户角色
分为五类,其他、management、policymaker、monitoring、administrator、
各自的权限如下:
(None)
No access to the management plugin
management
Anything the user could do via AMQP plus:
List virtual hosts to which they can log in via AMQP
View all queues, exchanges and bindings in "their" virtual hosts
View and close their own channels and connections
View "global" statistics covering all their virtual hosts, including activity by other users within them
policymaker
Everything "management" can plus:
View, create and delete policies and parameters for virtual hosts to which they can log in via AMQP
monitoring
Everything "management" can plus:
List all virtual hosts, including ones they could not log in to via AMQP
View other users‘s connections and channels
View node-level data such as memory use and clustering
View truly global statistics for all virtual hosts
administrator
Everything "policymaker" and "monitoring" can plus:
Create and delete virtual hosts
View, create and delete users
View, create and delete permissions
Close other users‘s connections
设置用户角色
rabbitmqctl set_user_tags User Tag
Tag为角色名administrator,monitoring,policymaker,management或其他自定义名称