Docs
Live demo

Move rules to a new template version

Edit a template, preview diffs and roll rules to the new version.

On this page

Before you start: the admin role.

Swipe the screenshot sideways to see all of it, or tap it to open it full size.

A template shows its audience (who got access through it), the target of each rule and the state of each apply.
  1. Create rule from this template.
  2. Summary: grants, rules that use the template, last update.
  3. Audience: users and groups with a rule from this template, with the target and the apply state.
  1. Open the template in Rules & templates, click Edit template (pencil), edit permissions and click Update.
  2. Click Update N rules to preview gains and removals (+ INSERT, SELECT on principal/public/*).
  3. Confirm Update N rules to apply across targets.
  4. On failures, fix the cause and click Retry failed rules.

Saving creates a new version without touching targets. Updating revokes dropped grants (manual grants: Access granted by hand).

Through the API#

  1. Save version: PUT /access-templates/{name} (full body).
  2. Preview: POST /access-templates/{name}/rule-upgrade/preview (returns run ID and request_hash).
  3. Confirm: POST /access-templates/bulk-apply-runs/{id}/confirm with request_hash.
↑ ↓ to moveEnter to openEsc to close