The AUTHORIZATION group in an app's rail decides who can do what in that app. Its pages are Policy, Directory, Requests, Decision log, Enforcement, Embeds and Versions.
Authorization needs the Pro plan or above. Without it, a policy already in place keeps answering checks and can be taken apart, but nothing can be added or changed until the plan includes it.
Owners and admins change the policy. Other roles see every page read only. Checks are made from your code with the SDKs or the API; see JavaScript SDK and the API reference.
Policy#
/apps/:app/policy has four tabs: the editor, Resources, Roles, Conditions and Suggestions.
Editor#
- Policy at a glance: Policy version (moves with every change), Resources, Permissions, Roles and Role assignments (default roles not counted).
- Switches: Checks from the browser (signed-in people can ask about their own permissions from your front end, to hide what they cannot use) and People can ask for access (someone who is refused can ask for a role or one action; you approve it in Requests).
- Roles and permissions: a matrix of roles against permissions. Each cell is granted, granted with a condition, or not granted. Clicking a conditional cell opens the condition builder. Changes are staged and shown under Review changes before you save.
- Permissions: each with its flags: Turned off, Verify first, Needs approval, Agents may act alone, Not while impersonating. Custom permission adds one that is not an action on a resource, with a Slug your code checks (for example billing.export).
Open a permission to change its Name, Description and flags. Verify first (step-up) makes the check answer "verify" until the person completes a fresh challenge; pick the Method (Any method, Email code, SMS code, Authenticator app, Passkey, Push, Duo) and Good for (1 to 86,400 seconds; empty asks every time). Not while impersonating keeps the permission refused while a team member is signed in as the user. Custom permissions can be deleted with a typed confirm.
Resources#
A resource is a kind of thing in your app. Its actions become the permissions roles grant.
- New resource: Name, Slug (what your code checks, like project:edit; cannot change later), Actions (press Enter after each; dropping one deletes its permission) and Description.
- Relations: when a role on another object should reach this one. For example, a document's parent is a folder.
- Roles on one object: held on a single object, like owner of one folder, with the actions they grant and Also given to (a role through a relation; for example, owner of its parent folder is editor of this document).
Deleting a resource or dropping granted actions asks for a typed confirm.
Roles#
A role is a set of permissions you give people: Viewer, Editor, Billing admin.
- New role / Edit: Name, Slug (cannot change later), Description, Default: everyone who signs in holds it, and its Permissions.
- Delete: when people hold the role, Move them to another role first. Anyone already holding that role keeps the longer of the two expiries.
- Groups: map identity provider groups to the role. SAML groups are listed one per line exactly as the identity provider sends them, and apply at the next sign-in. A SCIM group can be mapped onto the role, and its members move now. Roles given this way change only in the provider. When SAML is set on the master workspace, its groups are mapped there.
Conditions#
Every conditional grant. A condition narrows a grant: the role has the permission only when it holds. Add condition picks the Role and Permission, then builds the condition over user.* (attributes your backend sets), resource.* (object attributes) and context.* (values sent with the check). A missing value fails closed. Remove grants the permission outright.
Suggestions#
Changes suggested from the app's decision log over the last 7 days, 30 days or 90 days. Nothing changes until you apply one. Backtest shows what a change would have done. Try a change backtests giving or taking away one permission from one role. Anyone can backtest; owners and admins apply.
Directory#
/apps/:app/directory has three tabs.
- Users: people who have signed in, searched by name or email and filtered by role. Open a person for their App roles (with Give a role, an optional Until date, and Take away), Roles on objects (give one by Type, Key and Role) and Attributes (set by your backend, read by conditions as user.*). Roles from your identity provider change there.
- Objects: by type, searched by key, or opened by exact key. New object takes Type, Key and Attributes (JSON, read as resource.*); usually your backend adds these. Open an object to edit its attributes, see its relationships and the people with a role on it, or delete it.
- Relationships: every relationship, filtered by relation. Look up an object as object or as subject. New relationship picks the object type, relation and keys; objects that do not exist yet are made. Removing a relationship stops the roles that came through it right away.
Requests#
/apps/:app/requests lists access requests for the app, by status: a role, an operation, or an agent's request.
- People can ask for access: on, people ask from your app with the SDK's request calls or the requests embed.
- Approve (a role is given right away; an action can be done once, with the same request) or Deny, each with an optional note.
- File a request: for someone who cannot ask from your app. Pick the person, a role or one action, and how long: 1 hour, 8 hours, 1 day, 7 days, 30 days or No end.
The newest 200 are shown. Every request also shows in Approvals.
Decision log#
/apps/:app/decision-log has three tabs.
- Decisions: every access decision in the app. Filter by verdict (All, Allowed, Refused, Verify, Approval), Permission, Object and Since. Open a row for Roles, Reason, Policy version, Took, From (your server or gateway, the browser, or an agent), When, Task, Decision id and Hash, plus the Why explanation. Load more reads older rows. The workspace-wide list is on Logs.
- Check access: pick a Person, an Action (or another action name) and Which one or an Object, add Context values, then Check. The answer says allowed, after a verification, once approved, only if a condition holds, or not allowed, with the app roles and object roles they hold, what else they may do, and Who else can. Nothing is logged.
- Settings: Allowed decisions to keep (the share of allows sampled; refusals and held decisions are always kept), Keep decisions for (up to 400 days) and Decisions as events (each decision also goes out as an event to your webhooks and log streams).
Enforcement#
/apps/:app/enforcement shows how to check access.
- SDK: Check on your server (Next.js, Node, curl), Hide what people can't use with useCan and the Client checks switch (without client checks the hook answers not allowed for everyone; it only tidies the page, your server still checks), and More calls (batch and filter).
- Gateway: the Gateway switch, When no rule matches (Refuse or Allow), the endpoint to point your proxy at, ordered Route rules, and Envoy, Traefik and NGINX snippets. The same settings appear on Agents > Gateway.
- Local decisions: a signed Policy snapshot (Policy version, Expires, Keys URL, Token) to Decide locally without calling Scute. It needs the workspace's signing keys.
Embeds#
/apps/:app/embeds puts access management inside your own product. Make an element token:
- What it may do: See people and their roles, Give and take away roles, Approve or deny access requests, Read the decision log.
- Who it may see: By attribute (key=value, one per line, matched against user attributes such as their tenant), These ids (up to 1,000) or Everyone.
- Roles it may give or approve, Used by (approvals are made in that person's name), Label (shown in audit events) and Lasts (60 to 3,600 seconds).
Make token shows the token once. Tokens made on the page are listed until you leave, with Revoke. Hook it up has Node, curl, @scute/js-core and fetch samples.
Versions#
/apps/:app/versions treats the policy as a document.
- Policy document: the current document, with Download, and From your pipeline (a curl recipe).
- Import a document: paste or upload a JSON document (up to 1 MB). Check changes runs a dry run and lists what would change before Apply. Delete what the document leaves out (prune) deletes roles, resources and permissions not in it, with their grants.
- Promote from another app: copy another app's policy here, for example from staging to production, with the same dry run and prune option.
- Version history: every version, newest first, with who changed what. A picked version shows its changes since, or its document, and can be restored through the same dry run (Check restore). Show older versions reads further back.