Files
supabase/apps/docs
Miranda Limonczenko 7e5748ba6b docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498

## Problem

The Configure user access section of Temporary access is split out as a
part of the Information Architecture plan laid out in Option 1 of the
[Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `## Configure user access` to
`guides/platform/team-database-access`. Temporary access keeps the
heading and its anchor, with a one-sentence pointer. The page is in the
Platform sidebar after Temporary Access.
- **Option 1 navigation:** the "Map team members to Postgres roles"
entry in Run and manage, Team, points to the new page. The Option 1 test
no longer expects the anchor. Today's navigation uses the same label, at
34 characters.
- **Guide shape:** a value-statement opener with a short definition of a
role mapping, Prerequisites, then steps to authorize a team member and
to restrict their access. Each list has a lead-in.
- **Sample fixes:**
- The request sent the role list as `user_roles`. The Management API
requires `roles`.
- `expires_at` was in milliseconds. It takes Unix seconds, which the
Dashboard sends.
- A new step looks up the team member's user ID through the organization
members endpoint. The old sample used a placeholder with no way to find
the value.

### Not verified

- **Samples:** the Management API calls need a hosted project, so
`test-the-docs` can't run them. I ran them by hand against a hosted
project.

## Manual testing

1. Open [Map team members to Postgres
roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access).
See the prerequisites, the steps to authorize a team member, and the
restrictions.
2. Open [Temporary
access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access).
See the Configure user access heading with a one-sentence pointer to the
new page.
3. In the Platform sidebar, click **Map team members to Postgres
roles**. See the new page open.
2026-10-30 23:54:52 +00:00
..
2026-07-01 12:59:00 +02:00
2026-10-28 14:49:29 -07:00
2026-10-29 09:57:35 +11:00

Reference Docs

Supabase Reference Docs

Maintainers

If you are a maintainer of any tools in the Supabase ecosystem, you can use this site to provide documentation for the tools & libraries that you maintain.

DocSpec

We use documentation specifications which can be used to generate human-readable docs.

  • OpenAPI: for documenting API endpoints.
  • SDKSpec (custom to Supabase): for SDKs and client libraries.
  • ConfigSpec (custom to Supabase): for configuration options.
  • CLISpec (custom to Supabase): for CLI commands and usage.

The benefit of using custom specifications is that we can generate many other types from a strict schema (eg, HTML and manpages). It also means that we can switch to any documentation system we want. On this site we use Next.js, but on Supabase's official website, we use a custom React site and expose only a subset of the available API for each tool.

Redirects

Redirects for /docs URLs live in lib/redirects/. Static one-to-one entries go in static-redirects.json, conditional entries go in dynamic-redirects.js, and the .md variants for /docs/guides/ entries are generated at build time. Read that README before adding or changing a redirect.

Contributing

To contribute to docs, see the style guide for how to write a page, and the developers' guide and contributing guide for repo mechanics. If you write with an AI coding agent, use the /write-the-docs skill to draft and /edit-the-docs to revise an existing page.