Explain access

Answer why a principal can or cannot do something, and list who has access to a resource.

Explain access

Two tools answer access questions:

  • Explain access decides one permission for one subject on one resource and shows the grant, deny, policy or condition that settled it.
  • Who has access lists everyone who holds permissions on a resource, and through what.

Both read the live access data and change nothing.

Explain a decision

  1. Open Settings → Account → Access and select Explain access, or select Explain on any grant or Who has access row, a My access permission or restriction, a denial in the account audit log, or Explain my access where a page is refused. These open the form filled in, in a drawer over what you were doing (above an open dialog too); Escape or Close returns you there, and Open as page keeps it as a page.
  2. Choose the Subject: a user, service account or agent. Without account.view_access you can explain only your own access.
  3. Choose the resource (Resource type, then the table, column or item) and the Permission.
  4. Optionally set At (optional, your local time), Client IP (optional) or Authentication method (optional) to test conditions that read them.
  5. Select Explain.

The answer shows Allowed or Denied with what decided it: the role grant or relationship that allows it, or the deny on a role or grant, the forbid policy, or the condition that blocked it. It also lists the subject's role grants on the resource, the relationships on it, and the groups involved. Deployment-wide access is explained under Settings → System → Access.

How it was decided shows the whole derivation as a tree: each rule the decision passed through (forbid and permit policies, the permission's condition, role grants on the resource and its parents, relationships, group memberships, conditions with the values they read, denies, and limits), each marked whether it holds and with the path that decided the outcome highlighted and open. Use the arrow keys to move through it, Right and Left to open and close a step, and Expand all to see every step. A long derivation is cut at 1,024 steps and says so. When you explain another subject, its grants show only on resources whose access you can view, and its group memberships only for groups you can view, besides the grant that decided; the others appear as one Not shown step with its outcome. Steps about resources you cannot view, custom policy conditions without account.view_policies, and another subject's attributes are hidden too. A draft policy, role or grant can be tested only by someone who could save it, and a draft that reads the subject's attributes only on your own access.

Your own access is explained as your requests are decided, with this request's time, address, authentication method and token unless you set them: a scoped token is limited to its scopes, and a service account token also to what the user who created it may do. That user's part of the tree is shown as another subject's, so its grants, groups and attributes you cannot otherwise view are not shown; when it read that user's attributes it shows only its outcome. A draft that reads attributes is refused, and such a token cannot set At, Client IP or Authentication method.

To see how a policy change would decide before saving it, use the Test tab of the policy editor.

List who has access

Open the resource's access panel: Settings → Account → Tables and select a table, Share on a dashboard, the Access card on an incident, or Access on an agent, a saved query or a service account. The Who has access tab lists each subject, Through which grants, relationships or groups, and the Effective permissions they hold. Use Holding to show only subjects that hold one permission. The Policies table lists the policies that apply there.

Example: why can't Dana read payments?

  1. Explain access with Subject Dana, Resource type Table, table payments, Permission table.read.
  2. The result is Denied: "Deny (from the role) of table.read when resource.Name.startsWith("pay")", from the Support reader role Dana holds through the support group.
  3. Fix it where it was decided: narrow the role's deny, or grant Dana Data reader on payments directly. A deny applies wherever its role is granted, so a separate grant without the deny is what lets Dana read the table.
  4. Explain again to confirm Allowed.