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.
| Layer | Question it answers | Where it lives |
|---|---|---|
| Platform | May this account administer the whole installation? | Global role and platform grants |
| Organization | What may this member do inside this workspace? | Membership role and its grants |
| Ownership | Who 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:
| Role | Intended purpose | Default grants |
|---|---|---|
ADMIN | Run the workspace | Uploads and blogs |
EDITOR | Work on content | Uploads/blogs plus some user visibility |
USER | Ordinary member | No 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
ADMINrole, 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
USERrole and an organizationADMINmembership. Under the seeded grants, that owner cannot create a website or start a crawl. Reads work; mutations are refused because neither layer supplieswebsites.*orcrawls.*.
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
| Action | Requirement |
|---|---|
| Read websites, crawls, reports, findings, inventory | Active workspace membership |
| Create, edit, archive, delete or import websites | Global ADMIN or matching websites.* |
| Start, cancel or read crawl progress | Global ADMIN or matching crawls.* |
| Read a run's report, findings, groups or URL inventory | Global ADMIN only |
| Read or change members and invitations | Organization ADMIN or platform admin |
| Read entitlements | Workspace membership |
| Start checkout | Workspace owner |
| Platform administration, refunds, plan assignment | Platform authority |
The workspace context
Organization-scoped routes require an active organization. The server resolves it in this order:
- the
X-Organization-IDheader, - 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.createis 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/acceptwhile 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
| Error | Meaning | Fix |
|---|---|---|
400 NO_ORGANIZATION | No workspace selected or resolved | Send X-Organization-ID |
403 FORBIDDEN | Permission missing | Grant the permission or use a platform admin |
| 403 “requires administrator access to this organization” | Org role is not ADMIN | Promote within the workspace |
| 403 “requires platform administrator access” | Not a platform admin | Use a SUPER_ADMIN account |
| 404 “Organization not found” | Suspended, deleted or not a member | Check the workspace |
| 404 “Website not found” | Wrong tenant or wrong id | Check the selected workspace |
Menus are not permissions
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:
| Need | Setup |
|---|---|
| Strict client separation | One workspace per client; invite that client only there |
| One team, several client sites | One workspace; use roles and naming to separate work |
| Client self-service | Invite 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.