[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Create a user\n\nTo create a user, [connect to the database cluster](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/db-connect-cluster) and complete the\nfollowing steps:\n\n1. At the `psql` prompt, create the user: \n\n ```sql\n CREATE USER USER_NAME\n WITH PASSWORD PASSWORD\n ATTRIBUTE1\n ATTRIBUTE2...;\n \n ```\n\n Enter the password when prompted.\n\n For more information about role attributes, see the\n [PostgreSQL documentation](https://www.postgresql.org/docs/current/static/role-attributes.html).\n2. You can confirm the user creation by displaying the user table: \n\n ```sql\n SELECT * FROM pg_roles;\n \n ```"]]