Scopes¶
| Scope | Grants |
|---|---|
projects:read, projects:write |
Projects and what belongs to them: tasks, statuses, task types, checklists. |
files:read, files:write |
Files: text documents, whiteboards, spreadsheets, links and uploads, and the collections they are in. |
calendars:read, calendars:write |
Calendars, events and attendees. |
dashboards:read, dashboards:write |
Dashboards. |
posts:read, posts:write |
Posts, including pinning. |
wikis:read, wikis:write |
Wikis and their pages. |
comments:read, comments:write |
Comments on what the plug-in can read. |
relationships:read, relationships:write |
Links between items the plug-in can reach. |
tags:read, tags:write |
Reading, creating and applying tags. |
properties:read, properties:write |
Reading an initiative's custom property definitions and their options, and creating, changing and removing them. Setting a value on an item takes that item's own scope instead: a task's with projects:write. |
sharing:read, sharing:write |
Seeing who has access to something, and changing it where the plug-in's own access allows it. |
members:read |
The roster, as references, display names and avatars. |
initiatives:read |
The initiatives the plug-in is placed in. |
initiatives:moderate |
Acting as a moderator in an initiative it is placed in: everything there, within the plug-in's other scopes. Only on a token that asks for it (level=moderator) and is narrowed to that initiative. |
community:admin |
Acting with a community admin's standing across the community, within the plug-in's other scopes. Only on a token that asks for it (level=community_admin) and is not narrowed to an initiative. |
plugins:<public id> |
Calling that plug-in's public endpoints through Initiative, and reading the values it shows on items the plug-in can read. One per plug-in. |
<kind>:read, <kind>:write |
A tool plug-in's tool, by its tool's kind (counter_group.tsjvtcm0s7gv2x:read): its rows and its items, as a built-in tool's scopes reach its own. One pair per tool plug-in, reaching a tool only in a community that installed it. |
A container plug-in's scopes go in its manifest's service block. A
declarative plug-in asks for read scopes alone, at the manifest's top level: it
keeps its own values on items those scopes read, and does not call Initiative.
A container plug-in with callsPlugins: true needs no plugins: scope in its
manifest: a community that installs another plug-in is asked there whether
this one may use it, and that grants plugins:<public id> for it.
A plug-in that reaches a tool plug-in's tool names its scope like any other:
the tool's key and its plug-in's uid, both fixed by that plug-in's manifest, so
the kind is the same in every deployment. The community grants it on install
with the rest, and it reaches nothing in a community without the tool. A
manifest names at most 24 plugins: and tool scopes together. A tool plug-in
itself is granted no scopes: it runs no code.
Writing implies reading. Within its scopes a plug-in still sees only what is open
to the initiative, shared with the plug-in, or created by it — unless a token asks
for one of the two standings above. Those are never on a token by default: ask
for one with asInstallation(installation, { initiative, level: "moderator" })
or asInstallation(installation, { level: "community_admin" }), and Initiative
refuses it unless the community granted the matching scope. A member token
takes no level.