Title: Managing Roles for your Postgres database - PlanetScale
Open Graph Title: Managing Roles for your Postgres database - PlanetScale
X Title: Managing Roles for your Postgres database - PlanetScale
Description: When you connect to your database, you have the option to connect with the default role or a user-generated role. This document covers the differences between each option and how to create new roles.
Open Graph Description: When you connect to your database, you have the option to connect with the default role or a user-generated role. This document covers the differences between each option and how to create new roles.
X Description: When you connect to your database, you have the option to connect with the default role or a user-generated role. This document covers the differences between each option and how to create new roles.
Opengraph URL: https://planetscale.com/docs/postgres/connecting/roles
Generator: Mintlify
Domain: planetscale.com
{"@context":"https://schema.org","@type":"WebSite","name":"PlanetScale","creator":{"@type":"Organization","name":"Mintlify","url":"https://mintlify.com"}}
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://planetscale.com/#organization","name":"PlanetScale","url":"https://planetscale.com","logo":{"@type":"ImageObject","url":"https://mintcdn.com/planetscale-2/xUilVHToUFALai8a/logo/light.png?fit=max&auto=format&n=xUilVHToUFALai8a&q=85&s=cccd3c9fc813c01b899ab7af15a115b1"}},{"@type":"WebSite","@id":"https://planetscale.com/docs#website","name":"PlanetScale","url":"https://planetscale.com/docs","publisher":{"@id":"https://planetscale.com/#organization"}},{"@type":"WebPage","@id":"https://planetscale.com/docs/postgres/connecting/roles#webpage","url":"https://planetscale.com/docs/postgres/connecting/roles","name":"Managing Roles for your Postgres database","description":"When you connect to your database, you have the option to connect with the default role or a user-generated role. This document covers the differences between each option and how to create new roles.","dateModified":"2026-07-09T18:34:17.457Z","isPartOf":{"@id":"https://planetscale.com/docs#website"},"breadcrumb":{"@id":"https://planetscale.com/docs/postgres/connecting/roles#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://planetscale.com/docs/postgres/connecting/roles#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Platform","item":"https://planetscale.com/docs/postgres/pricing"},{"@type":"ListItem","position":2,"name":"Connecting","item":"https://planetscale.com/docs/postgres/connecting"},{"@type":"ListItem","position":3,"name":"Managing Roles for your Postgres database","item":"https://planetscale.com/docs/postgres/connecting/roles"}]},{"@type":["Article","TechArticle"],"@id":"https://planetscale.com/docs/postgres/connecting/roles#article","headline":"Managing Roles for your Postgres database","name":"Managing Roles for your Postgres database","description":"When you connect to your database, you have the option to connect with the default role or a user-generated role. This document covers the differences between each option and how to create new roles.","url":"https://planetscale.com/docs/postgres/connecting/roles","mainEntityOfPage":{"@id":"https://planetscale.com/docs/postgres/connecting/roles#webpage"},"dateModified":"2026-07-09T18:34:17.457Z","publisher":{"@id":"https://planetscale.com/#organization"},"isPartOf":{"@id":"https://planetscale.com/docs#website"}}]}
| application-name | PlanetScale |
| msapplication-config | /docs/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/browserconfig.xml |
| apple-mobile-web-app-title | PlanetScale |
| msapplication-TileColor | #0e73cc |
| og:site_name | PlanetScale |
| og:image | https://planetscale-2.mintlify.app/_next/image?url=/_mintlify/api/og?division=Connecting&title=Managing+Roles+for+your+Postgres+database&description=When+you+connect+to+your+database%2C+you+have+the+option+to+connect+with+the+default+role+or+a+user-generated+role.+This+document+covers+the+differences+between+e&logoLight=https%3A%2F%2Fmintcdn.com%2Fplanetscale-2%2FxUilVHToUFALai8a%2Flogo%2Flight.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DxUilVHToUFALai8a%26q%3D85%26s%3Dcccd3c9fc813c01b899ab7af15a115b1&logoDark=https%3A%2F%2Fmintcdn.com%2Fplanetscale-2%2FxUilVHToUFALai8a%2Flogo%2Fdark.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DxUilVHToUFALai8a%26q%3D85%26s%3D4153888dc0ef54ddc3464738a2d7ee6e&primaryColor=%230e73cc&lightColor=%2347b7f8&backgroundLight=%23fafafa&backgroundDark=%23111111&w=1200&q=100 |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:type | website |
| twitter:card | summary_large_image |
| twitter:image | https://planetscale-2.mintlify.app/_next/image?url=/_mintlify/api/og?division=Connecting&title=Managing+Roles+for+your+Postgres+database&description=When+you+connect+to+your+database%2C+you+have+the+option+to+connect+with+the+default+role+or+a+user-generated+role.+This+document+covers+the+differences+between+e&logoLight=https%3A%2F%2Fmintcdn.com%2Fplanetscale-2%2FxUilVHToUFALai8a%2Flogo%2Flight.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DxUilVHToUFALai8a%26q%3D85%26s%3Dcccd3c9fc813c01b899ab7af15a115b1&logoDark=https%3A%2F%2Fmintcdn.com%2Fplanetscale-2%2FxUilVHToUFALai8a%2Flogo%2Fdark.png%3Ffit%3Dmax%26auto%3Dformat%26n%3DxUilVHToUFALai8a%26q%3D85%26s%3D4153888dc0ef54ddc3464738a2d7ee6e&primaryColor=%230e73cc&lightColor=%2347b7f8&backgroundLight=%23fafafa&backgroundDark=%23111111&w=1200&q=100 |
| twitter:image:width | 1200 |
| twitter:image:height | 630 |
Links:
Viewport: width=device-width, initial-scale=1, viewport-fit=cover