.TH "GCLOUD_ALLOYDB_USERS_SET\-ROLES" 1 .SH "NAME" .HP gcloud alloydb users set\-roles \- update an AlloyDB user's database roles within a given cluster and region .SH "SYNOPSIS" .HP \f5gcloud alloydb users set\-roles\fR \fIUSERNAME\fR \fB\-\-cluster\fR=\fICLUSTER\fR \fB\-\-db\-roles\fR=[\fIROLE\fR,...] \fB\-\-region\fR=\fIREGION\fR [\fB\-\-keep\-extra\-roles\fR=\fIKEEP_EXTRA_ROLES\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR] .SH "DESCRIPTION" Update an AlloyDB user's database roles within a given cluster and region. .SH "EXAMPLES" To update a user's database roles, run: .RS 2m $ gcloud alloydb users set\-roles my\-username \-\-cluster=my\-cluster \e \-\-region=us\-central1 \-\-db\-roles=role1,role2 .RE .SH "POSITIONAL ARGUMENTS" .RS 2m .TP 2m \fIUSERNAME\fR AlloyDB username .RE .sp .SH "REQUIRED FLAGS" .RS 2m .TP 2m \fB\-\-cluster\fR=\fICLUSTER\fR AlloyDB cluster ID .TP 2m \fB\-\-db\-roles\fR=[\fIROLE\fR,...] Comma separated list of database roles this new user will be granted upon creation. .TP 2m \fB\-\-region\fR=\fIREGION\fR Regional location (e.g. \f5asia\-east1\fR, \f5us\-east1\fR). See the full list of regions at https://cloud.google.com/sql/docs/instance\-locations. .RE .sp .SH "OPTIONAL FLAGS" .RS 2m .TP 2m \fB\-\-keep\-extra\-roles\fR=\fIKEEP_EXTRA_ROLES\fR If the user already exists and has extra roles, keep them. .RE .sp .SH "GCLOUD WIDE FLAGS" These flags are available to all commands: \-\-access\-token\-file, \-\-account, \-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten, \-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http, \-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled, \-\-verbosity. Run \fB$ gcloud help\fR for details. .SH "NOTES" These variants are also available: .RS 2m $ gcloud alpha alloydb users set\-roles .RE .RS 2m $ gcloud beta alloydb users set\-roles .RE