Skip to content

Commit de1ef72

Browse files
Merge pull request #7560 from rabbitmq/document-set_permissions_globally
Document set_permissions_globally CLI command
2 parents 0dcbd6a + 9c198d3 commit de1ef72

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

deps/rabbit/docs/rabbitmqctl.8

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,32 @@ and write and read permissions on all resources:
922922
.sp
923923
.Dl rabbitmqctl set_permissions -p my-vhost janeway Qo ^janeway-.* Qc Qo .* Qc Qq .*
924924
.\" ------------------------------------------------------------------
925+
.It Cm set_permissions_globally Ar username Ar conf Ar write Ar read
926+
.Bl -tag -width Ds
927+
.It Ar username
928+
The name of the user to grant access to the specified virtual host.
929+
.It Ar conf
930+
A regular expression matching resource names for which the user is
931+
granted configure permissions.
932+
.It Ar write
933+
A regular expression matching resource names for which the user is
934+
granted write permissions.
935+
.It Ar read
936+
A regular expression matching resource names for which the user is
937+
granted read permissions.
938+
.El
939+
.Pp
940+
Sets user permissions in all vhosts.
941+
.Pp
942+
For example, this command instructs the RabbitMQ broker to grant the
943+
user named
944+
.Qq janeway
945+
access to all virtual hosts with configure permissions on all resources whose names starts with
946+
.Qq janeway- ,
947+
and write and read permissions on all resources:
948+
.sp
949+
.Dl rabbitmqctl set_permissions_globally janeway Qo ^janeway-.* Qc Qo .* Qc Qq .*
950+
.\" ------------------------------------------------------------------
925951
.It Cm set_topic_permissions Oo Fl p Ar vhost Oc Ar user Ar exchange Ar write Ar read
926952
.Bl -tag -width Ds
927953
.It Ar vhost

0 commit comments

Comments
 (0)