Declare the minimum scopes
Scopes declare requested operations; they do not grant access by themselves. A reviewed installation, the current user’s workspace role and the target resource’s access rules must all allow the operation. Add only the capabilities your app actually uses.
For example, tags.read permits the approved tag read contract; it does not imply write, archive or unrestricted management access. A broader permission requires its own review and workspace approval.
{
"scopes": ["tags.read"]
}Keep context explicit
Use the authorized launch context and supported data client. Never derive authority from a displayed workspace name, query parameter or a browser-stored account ID. Switching accounts or workspaces must stop outgoing requests and discard data that belongs to the previous identity.
Resource pickers need explicit authorized providers. They must not quietly fall back to private dashboard endpoints when your app lacks a provider or permission. Show an unavailable or permission state with a useful next action instead.
Updates and revocation
An approved newer version does not automatically widen an existing installation’s permissions. Review the version and requested changes before approving an update. Handle revoked sessions, removed memberships and uninstalled apps as loss of access.
Keep credentials out of logs and customer-visible errors. A permission failure must never trigger a retry using a more privileged token or another account.