Hello,
I have a question about how users are synchronized to and from the running postgres sql instance.
Background information:
My experimentation:
My conclusions:
My questions:
Thanks in advance
Hi @jwaffe,
Welcome to Google Cloud Community!
To answer your questions:
CREATE USER
, but it keeps track of the state of your Cloud SQL instance. So, when you add a user through SQL, it eventually syncs with GCP’s management interface as part of regular database monitoring and replication.CREATE USER
. IAM users are managed by GCP separately from the PostgreSQL database itself, so they aren’t part of the database’s built-in user management system.cloudsql.users.create
permission is specifically for creating users through GCP’s interfaces, like the GCP console or APIs. Even though you can create users with SQL, this permission gives you a more centralized, GCP-managed way to handle user creation. It's part of managing access and permissions within the broader GCP ecosystem. As mentioned earlier, using psql client is one way of creating users. Users with cloudsql.users.create
permission can create users using CREATE USER
command.Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.