Organizations and roles
An organization is a workspace: members, roles, invitations, and its own slug. Boards, projects, documents — whatever your app scopes — belong to it.
Turning it on
Section titled “Turning it on”plugins: organization: dynamicAccessControl: true allowUserToCreateOrganization: true accessControl: board: [create, read, update, delete] workspace: [invite, remove, billing]accessControl is the vocabulary. Every role, built-in or runtime, is expressed in these terms, and a
role cannot grant a permission that is not declared here.
The built-in roles are derived from that vocabulary:
| Role | Gets |
|---|---|
owner |
every declared permission |
admin |
everything except deleting the organization or deleting a role |
member |
the read permissions only |
Override any of them with roles:, or let owners create their own at runtime.
No “add member” endpoint
Section titled “No “add member” endpoint”An existing account joins the same way a new one does: invitation → accept. The components encode
this because the API enforces it; POST /organization/add-member does not exist.
The flow is invite-member → the link arrives by email → accept-invitation with the invitation id.
Invitations can be listed and revoked while pending. This is why enabling it in production means
configuring a real mail provider — with console the link only reaches the container log.
Enforcing on the server
Section titled “Enforcing on the server”The console’s permission gate is a convenience; the API is the control.
const result = await client.organization.hasPermission({ organizationId, permissions: { board: ["create"] },});if (!result.data?.success) return Response.json({ error: "forbidden" }, { status: 403 });A member with no invitation:create gets
403 YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION even if they craft the request
themselves. Verify that, rather than trusting the hidden button.
Components
Section titled “Components”| Component | Purpose |
|---|---|
organization-switcher |
list the viewer’s organizations, change the active one on the server |
organization-list |
every organization with slug and role |
create-organization |
name, derived slug, activates the result |
organization-general |
rename, change slug, delete (owner only) |
organization-members |
members, role menus, removal; the owner is protected |
organization-invitations |
invite, list pending, revoke |
organization-roles |
runtime roles with a permission matrix from the vocabulary |
can |
hides UI the role cannot use |