Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Give a person exactly the actions and resources they need.

Prerequisites

  • Owner or Admin of the team.

Workflow

1
In team settings, open Roles and choose New role, or copy a built-in role.
2
Name it, pick a Start from preset if one fits, and choose actions under What it can do. Search by key, for example database.*.
3
Check This role can do N actions, then choose Save role.
4
To limit someone to one resource, invite them with Only on…, or open the resource’s Who can access this? and choose Give someone access.

Presets

  • Read only: every read action.
  • Deploy only: redeploy, restart, roll back and start deployments, cancel builds, and read builds, deployments and project status.
  • Mail sender: send live, template, batch and one-time-code mail, schedule sends and run pre-send checks.
  • Database operator: every database action except those that delete data.

Actions and wildcards

  • Use real action keys such as database.restart, database.backup.create, deployment.redeploy or mail.live.send.
  • A wildcard covers a group: database.* is every database action, * is everything.
  • Custom roles cannot include deleting the team or transferring ownership.
  • Deleting a role that people hold removes it from all of them after you confirm.

Limited to one resource

Limited roles take effect when Access is switched on. Until then, people with only a limited role can’t open anything on this team.
  • A limited role applies only to one resource the team owns: a project, database, bucket, server, Mail domain, Assets space and more. A project includes its environments, services, domains and functions.
  • Roles add up: Developer on project:api plus Viewer on database:orders gives both.
  • Set an end date to grant access for a time.
  • A limited person is not a full team member. They see only what their roles cover.

Policies in the API

Roles are policies. Create them with POST /api/v1/teams/{teamId}/access/roles using a preset, a list of actions, or a full policy. Assign them with POST /api/v1/teams/{teamId}/access/assignments with user_id, role or policy_id, an optional resource such as database:<id>, and an optional expires_at. A policy is a list of allow and deny statements. A deny always wins, and anything not allowed is refused. The only conditions are ip_cidrs, environments, expires_at and mfa_within_minutes.
Policy

Expected result

The person sees and changes only what the role and its limit allow.

Roles

Every person on a team has a role: Owner, Admin, Developer, Viewer or Billing. Developers build and deploy; once Access is switched on, they cannot delete production resources.

Who can access this? and unused access

See every person, token, agent and automation that can reach a resource and why, and remove access nobody has used in 90 days.

Team audit log and export

See everything people, tokens, agents and automations changed in a team, and everything they were refused. Export CSV or JSON, or stream it through Events.