projqoDevelopers

Guide

Scopes

What each scope allows, and how scopes and the person's own permissions work together.

A scope says what a token may be used for. Scopes are written <resource>:<access>, where access is read, write or delete. A few are wider: people:admin changes people in the organisation, and webhooks:manage makes and changes webhook subscriptions.

Two checks on every call

A call works only when both are true:

  1. the token has the call's scope;
  2. the person behind the token may do it in projqo.

A scope never gives a person more than their role does. A viewer's token with tasks:write still can't change a task, because a viewer can't.

Every call needs exactly one scope, shown on its page in the reference. Every call that changes something needs a write, delete or wider scope, never a read one.

The scopes

ScopeWhat it allows
org:readSee the organisation's details, your own profile and what you may do
people:readSee the people, teams and project people you can see in the app
people:adminInvite people, change their roles and remove them (organisation admins only); make and change teams
projects:readSee projects, releases and components
projects:writeCreate and change projects, releases and components
tasks:readSee tasks, their comments, attachments, links and history
tasks:writeCreate and change tasks, comments, attachments and links
tasks:deleteDelete tasks
worklogs:readSee work logged on tasks
worklogs:writeLog, change and delete work on tasks
boards:readSee boards, backlogs and sprints
boards:writeRank the backlog and plan, start and complete sprints
docs:readSee Docs spaces and pages, with their comments and attachments
docs:writeCreate and change Docs spaces and pages
docs:deleteMove Docs pages to the trash and delete them
filters:readSearch, and see and run saved filters
filters:writeCreate, change and delete your saved filters
webhooks:manageSubscribe to events and manage those subscriptions

More scopes come with later releases of the API; the changelog announces each one.

Asking for scopes

  • A personal token gets the scopes ticked when it was made. To change them, make a new token.
  • An OAuth app asks for scopes in the scope parameter of the consent page, separated by spaces, from the scopes it was registered with. Asking for more later shows the consent page again for the new ones only.

Ask for the fewest scopes that do the job: people are more likely to allow an app that asks for little, and a leaked token can do less.

When a scope is missing

The call answers 403 with the code insufficient_scope, and names the scope it needs. See errors.

Search answers are cut by scope too: a token with tasks:read but not docs:read finds tasks, never pages.