To create a user, [connect to the database cluster](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/application/ao-user/db-connect-cluster.md.txt) and complete the
following steps:

1. At the `psql` prompt, create the user:

   ```sql
     CREATE USER USER_NAME
         WITH PASSWORD PASSWORD
         ATTRIBUTE1
         ATTRIBUTE2...;
     
   ```

   Enter the password when prompted.

   For more information about role attributes, see the
   [PostgreSQL documentation](https://www.postgresql.org/docs/current/static/role-attributes.html).
2. You can confirm the user creation by displaying the user table:

   ```sql
     SELECT * FROM pg_roles;
     
   ```