Example of Setting User Permissions
The user
bob
has the following permission recorded in the
acl.conf
file:
USER=bob TOPIC=foo PERM=subscribe,publish
This set of permissions means that
bob
can subscribe to topic
foo
and publish messages to it, but
bob
cannot create durable subscribers to
foo
.
If
bob
is a member of group engineering and the group has the following entry in the acl file:
GROUP=engineering TOPIC=bar PERM=subscribe,publish
then bob can publish and subscribe to topics
foo
and
bar
.
If both the user
bob
and the group
engineering
have entries in the
acl.conf file, then
bob
has permissions that are a union of all permissions set for
bob
directly and the permissions of the group
engineering
.