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:
- the token has the call's scope;
- 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
| Scope | What it allows |
|---|---|
org:read | See the organisation's details, your own profile and what you may do |
people:read | See the people, teams and project people you can see in the app |
people:admin | Invite people, change their roles and remove them (organisation admins only); make and change teams |
projects:read | See projects, releases and components |
projects:write | Create and change projects, releases and components |
tasks:read | See tasks, their comments, attachments, links and history |
tasks:write | Create and change tasks, comments, attachments and links |
tasks:delete | Delete tasks |
worklogs:read | See work logged on tasks |
worklogs:write | Log, change and delete work on tasks |
boards:read | See boards, backlogs and sprints |
boards:write | Rank the backlog and plan, start and complete sprints |
docs:read | See Docs spaces and pages, with their comments and attachments |
docs:write | Create and change Docs spaces and pages |
docs:delete | Move Docs pages to the trash and delete them |
filters:read | Search, and see and run saved filters |
filters:write | Create, change and delete your saved filters |
webhooks:manage | Subscribe 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
scopeparameter 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.