gcloud sql users Stay organized with collections Save and categorize content based on your preferences.
- 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 helpfor details. - COMMANDS
is one of the following:COMMANDassign-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:
gcloudalphasqlusersgcloudbetasqlusers
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.