Skip to main content

Roles and Permissions

PruneSEO has three separate kinds of authority. Confusing them is the usual reason a workspace owner cannot do something they expect to be able to do.

LayerQuestion it answersWhere it lives
PlatformMay this account administer the whole installation?Global role and platform grants
OrganizationWhat may this member do inside this workspace?Membership role and its grants
OwnershipWho owns this workspace?organizations.owner_id

Platform authority is SUPER_ADMIN only. A user may be a USER globally and an ADMIN inside one workspace; that does not make them a platform admin.

Organization roles​

The assignable organization roles are fixed:

RoleIntended purposeDefault grants
ADMINRun the workspaceUploads and blogs
EDITORWork on contentUploads/blogs plus some user visibility
USEROrdinary memberNo default grants

The seeded roles do not include websites.* or crawls.*. Website and crawl mutations require either:

  • a matching permission grant (websites.create, websites.edit, crawls.start, crawls.cancel, and so on), or
  • the global ADMIN role, which the guards also accept.

This is the single most important RBAC fact in the current release:

A normal signup creates the workspace with the owner holding the global USER role and an organization ADMIN membership. Under the seeded grants, that owner cannot create a website or start a crawl. Reads work; mutations are refused because neither layer supplies websites.* or crawls.*.

The fix is a platform grant or a corrected default role. There is no self-serve permission screen yet. Until that changes, a platform operator must grant the needed permissions for a workspace to be operable.

What each surface requires​

ActionRequirement
Read websites, crawls, reports, findings, inventoryActive workspace membership
Create, edit, archive, delete or import websitesGlobal ADMIN or matching websites.*
Start, cancel or read crawl progressGlobal ADMIN or matching crawls.*
Read a run's report, findings, groups or URL inventoryGlobal ADMIN only
Read or change members and invitationsOrganization ADMIN or platform admin
Read entitlementsWorkspace membership
Start checkoutWorkspace owner
Platform administration, refunds, plan assignmentPlatform authority

The workspace context​

Organization-scoped routes require an active organization. The server resolves it in this order:

  1. the X-Organization-ID header,
  2. the caller's only membership, if they have exactly one.

If neither yields a usable workspace, protected routes refuse with 400 NO_ORGANIZATION and the message “Select an organization first (send the X-Organization-ID header)”.

A suspended, soft-deleted, or non-member organization returns 404 “Organization not found”. The 404 is deliberate: a 403 would confirm that a guessed tenant id exists.

Foreign rows inside an otherwise valid workspace also return 404, so the API does not reveal whether another tenant's website or crawl exists.

The owner​

The owner is recorded separately from the membership role, because an owner must not be able to lock themselves out of their own workspace by changing roles.

  • The owner may start checkout.
  • The owner cannot be removed from the workspace or demoted by member management.
  • Ownership does not bypass route permissions. An owner who lacks websites.create is still refused by that route; only checkout checks ownership as its bar.

Members and invitations​

Member management is API or administrator only. There is no working members screen.

  • List or add: GET/POST /organizations/:id/members.
  • Change role or remove: PATCH/DELETE /organizations/:id/members/:userId.
  • Invite: POST /organizations/:id/invitations.
  • Accept: POST /invitations/accept while signed in.
  • Roles are checked against the fixed set when the invitation is created, not when it is redeemed, so a later role edit cannot change what was offered.
  • An invitation expires after 7 days. Only one may be outstanding per email address. States: pending, accepted, revoked, expired.
  • The token is bound to the invited email. A signed-in caller with a different address cannot accept it.
  • Nobody may grant a role that exceeds their own permission ceiling.
  • Platform-tier roles cannot be assigned inside an organization.

Invitation emails currently point to a web acceptance page that is not built; acceptance is through the API.

Common refusals​

ErrorMeaningFix
400 NO_ORGANIZATIONNo workspace selected or resolvedSend X-Organization-ID
403 FORBIDDENPermission missingGrant the permission or use a platform admin
403 “requires administrator access to this organization”Org role is not ADMINPromote within the workspace
403 “requires platform administrator access”Not a platform adminUse a SUPER_ADMIN account
404 “Organization not found”Suspended, deleted or not a memberCheck the workspace
404 “Website not found”Wrong tenant or wrong idCheck the selected workspace

The web app does not consistently hide menu items by permission; some gating was removed while the authorization work was in progress. A visible link is not evidence that the action will succeed. The API guard is the authority, and this guide describes it.

Agency use​

An agency can create one workspace per client, or use one workspace with several websites. Workspaces are isolated: a membership in one supplies no grants in another, and grants are cached per user and per workspace so a role in one cannot answer for another.

The practical model:

NeedSetup
Strict client separationOne workspace per client; invite that client only there
One team, several client sitesOne workspace; use roles and naming to separate work
Client self-serviceInvite the client as USER or EDITOR in their workspace

Because the seeded roles lack website and crawl permissions, plan the workspace structure with a platform operator before onboarding clients.

Next: Troubleshooting.