Who can do what in a shared API workspace

The first question a team lead asks when moving the team's API collections into a shared tool: who can see the production secrets? The second: who can delete things? Requestarium answers both with roles at two levels, the organization and the workspace.

The built-in roles

RoleWho gets itCan do
Ownerorganization root, workspace ownereverything
Adminorganization admin, workspace admineverything, including members, settings and sync configuration
Editororganization developers and managers, workspace developersread, create, change and delete collections; send requests; read and edit environments, including secret values; pull and push synced collections
Viewerorganization users and viewers, workspace viewersread collections and environments
Guestoutside collaboratorsnothing in the organization; Editor or Viewer only in the workspaces shared with them

Organization roles give organization-level abilities (members, billing, settings). Workspace roles decide what someone can do inside a workspace.

Design workspaces around secrets

Roles are per workspace, so the simplest security model is about where things live:

  • Team workspace: every engineer, as Editor. Local and staging environments.
  • Production workspace: the on-call group, as Editor. Production environments and read-only production tokens.
  • Partner workspace: an outside agency as Guest Editor, with only the collections they need.

A viewer can read environments. If someone shouldn't see a value at all, they shouldn't be in that workspace, or the value should live in a secret manager that the CLI reads on the user's machine (see Use AWS Secrets Manager secrets in API tests).

Custom roles (Enterprise)

When the built-in roles are too coarse, an Enterprise organization can create up to 20 custom roles in Settings ▸ Roles, from a catalogue of permissions such as:

PermissionLevel
View collections, Edit collections, Delete collectionsworkspace
Send requestsworkspace
View environments, See secret values, Edit environmentsworkspace
Pull, Push, Configure syncworkspace
Manage members, Manage groups, Manage billingorganization
Read the audit log, Manage API tokens, Manage security settingsorganization

A few examples teams build:

  • QA runner: View collections, Send requests, View environments, without See secret values. Testers run everything and never see a production key.
  • Docs writer: View and Edit collections, no Send requests.
  • Auditor: Read the audit log, nothing else.

Custom roles only add permissions to what built-in roles already give; they never take anything away. Assign a role to a person or a group, on the whole organization or in one workspace. People in a group get the group's roles, and leaving the group removes them, which pairs nicely with groups kept in sync by SCIM.

Check before you assign

Settings ▸ Roles ▸ Preview as shows what a given person can do in the organization or a workspace, and where each permission comes from: their built-in role, their workspace role, or a custom role and the group it came through. It's the fastest way to answer "why can Bob delete this?".

Every role change is recorded in the audit log, with the role before and after.