Skip to content

docs: document invitations and project memberships - #3256

Merged
adlerhurst merged 8 commits into
mainfrom
cursor/invitation-membership-docs-3501
Nov 24, 2026
Merged

adlerhurst merged 8 commits into
mainfrom
cursor/invitation-membership-docs-3501

Conversation

@adlerhurst

@adlerhurst adlerhurst commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Context

Summary

  • Add /docs/concepts/access-and-memberships explaining project roles, owning teams, grants, invitations, and team membership vs lifecycle ownership.
  • Add /docs/guides/manage-project-access for inviting collaborators (console Members → Invite member and CLI), granting roles, verifying members, and recovering from common errors.
  • Cross-link from project-team-user, local-runtime, and the Invitations / Grants / Projects / Teams / Users API tag indexes; add missing Invitations, Search, and Policies cards on the API overview.
  • Correct OpenAPI descriptions for grant expand=principal (sessions need principal read too) and name the invitation pending cap (100) and metadata.name length (1–200).
  • After CLI walkthrough of the guide: clarify that grant principals must live on the platform project, name --user-user-id / --team-team-id, and note identifier-grant human output (Command completed).
  • After main merged console invite/accept and removed Add admin (feat(console): invite colleagues to a project by link and accept or decline an invitation #2978, feat(console): give project access by invitation only and remove Add admin #3066): drop the outdated “console UI not shipped” callout and document Project Settings → Members.

Validation

  • turbo run generate --filter=@zitadel/server
  • turbo run generate --filter=@zitadel/docs
  • turbo run typecheck lint build --filter=@zitadel/docs (new pages prerendered: /docs/concepts/access-and-memberships, /docs/guides/manage-project-access)
  • Walked every CLI step in /docs/guides/manage-project-access against zitadel start + setup --server local (invitation create/list/get/replace/cancel, grant create/list/delete, api listProjectMembers, event list filters). Fixed guide wording for platform team grants and opaque identifier creates.

Release notes / changeset

  • Empty changeset: .changeset/five-aliens-sell.md — OpenAPI description accuracy only; no request/response/behavior change. Concept and guide pages are repo docs under apps/docs.

Notes

Open in Web Open in Cursor 

cursoragent and others added 2 commits November 23, 2026 14:11
Add a concept page for access and memberships, a manage-project-access
guide, and cross-links from project-team-user, local-runtime, and the
API tag indexes so invitations, grants, and team memberships are
explained outside the generated operation pages.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
State the 100 pending-invitation cap and metadata.name length on
createInvitation, and align grant expand descriptions with
requirePrincipalRead for sessions and project secrets.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 14:11
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 24, 2026 8:58am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: e9839b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Verification against a local runtime showed team grants resolve only
platform teams, and identifier grants print Command completed even on a
miss. Spell both out in the guide.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
Invitation and membership concept/guide pages push llms-full.txt past
600k characters. Keep the guardrail well below the multi-megabyte
operation-inclusive size while allowing the new prose.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
Comment on lines +24 to +28
`GET /projects/{project_id}/members` lists each effective member once with their
strongest role and sources. Prefer it, with an optional `relation` filter, when
you need every role. `GET /projects/{project_id}/admins` returns only admins and
remains available while older clients use it. How owning teams, grants and
invitations combine: [Access and memberships](/docs/concepts/access-and-memberships).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this paragraph can be removed. The list of APIs gets rendered below and it becomes too repetitive: https://cloud-git-cursor-invitation-membership-docs-3501-zitadel.vercel.app/docs/reference/api/projects

@@ -0,0 +1,74 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page is a bit more technically detailed as compared to the other pages under Concepts. Can you make it a bit more high-level and shorter?


### Effective members

`GET /projects/{project_id}/members` lists each person once with their strongest role and the `sources` that produced it (`owning_team` or `grant`, direct or via a team). Prefer that list when you need every role. `GET /projects/{project_id}/admins` returns only admins and remains available while the console uses it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a sub-task as a reminder for us to drop the GET /projects/{project_id}/admins endpoint: #3276

Address review: keep Access and memberships high-level, leave exact
API and error detail to the guide and reference, remove the members
vs admins paragraph from the Projects tag page, and restore the
600k llms-full.txt budget now that the prose fits.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
Localhost measured under 600k after the shorter concept page, but the
preview deployment's longer absolute origin pushed llms-full.txt to
~610k. Restore the 650k budget with a note about that inflation.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
@adlerhurst
adlerhurst enabled auto-merge November 24, 2026 08:52
Main shipped Project Settings → Members with Invite member and
/invitations/accept (#2978, #3066). Drop the outdated not-shipped
callout, lead with the console path, and stop pointing at Add admin.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
@adlerhurst
adlerhurst added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 5e9805e Nov 24, 2026
17 checks passed
@adlerhurst
adlerhurst deleted the cursor/invitation-membership-docs-3501 branch November 24, 2026 09:04
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 24, 2026

This branch was successfully deployed

1 active deployment
Preview — e9839b50 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants