gcloud sql users

NAME
gcloud sql users - provide commands for managing Cloud SQL users
SYNOPSIS
gcloud sql usersCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
Provide commands for managing Cloud SQL users including creating, listing, anddeleting users.
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
assign-roles
Updates a user's database roles in a given instance.
create
Creates a user in a given instance.
delete
Deletes a Cloud SQL user in a given instance.
describe
Retrieves information about a Cloud SQL user in a given instance.
list
Lists Cloud SQL users in a given instance.
set-password
Changes a user's password in a given instance.
set-password-policy
Replaces a user's password policy in a given instance.
NOTES
These variants are also available:
gcloudalphasqlusers
gcloudbetasqlusers

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-03 UTC.