Access Control (IAM)

The permission model behind every request, for people and machines alike.

Access control answers one question, the same way every time:

May this identity perform this action on this resource?

The word that matters is same. People and machines go through one engine, with one policy language, evaluated the same way. There is no shortcut path for machines, and no separate system to learn for them.

That is one system and one policy language, not one set of permissions. A machine is scoped by its own identity to the office or browser it belongs to, and cannot hold organisation level access at all. What it shares with a person is the model, the vocabulary and the evaluator.

Three consequences are worth knowing before the detail, because each is the opposite of what most people assume:

An AI employee is an identity, not a sessionIt holds role assignments in the same form a person does, and every action it takes is attributable to it rather than to a shared platform credential
Machines are governed more strictly than the account ownerThe engine has exactly one shortcut and a machine can never reach it. See below
A machine usually cannot name the resource it acts onEndpoints that act on a machine's behalf resolve the target from its credential rather than from the request, so it cannot ask for something it does not own

Four primitives

WHO                 WHAT                WHERE
─────────────────────────────────────────────────────────
identity      →     action        →     resource
                    office:read         workspace/W1/office/O3
PrimitiveWhat it is
ActionA namespace:verb pair, such as office:read or secrets:write
ResourceA path, such as console, workspace/{id}, or workspace/{id}/office/{id}
PolicyA list of statements, each one { effect, actions, resources }
RoleA named bundle of policies
AssignmentBinds a role to an identity at a resource boundary

The boundary on the assignment is the part most people miss. A role says what its policies allow in principle. The assignment says where. Granting office-operator at workspace/W1/office/O3 gives that role's permissions in exactly one office, however broadly its policies are written.

That separation is what lets one role be reused everywhere without becoming a blunt instrument. You do not write a narrow role. You write a normal role and assign it narrowly.

The resource hierarchy

The resource hierarchyTWO ROOTS, NOT ONE TREEconsoleorganisation level✕no grant crossesworkspace/{id}everything a team works inoffice/{id}namespace/{id}browser/{id}project/{id}calendar/{id}A grant atworkspace/W1reaches every rowon the right, andnever the box above.

A parent covers its descendants. workspace/W1 in a statement also grants on workspace/W1/office/O3. The same rule applies to assignment boundaries, so the two stay consistent.

console is not an ancestor of anything. No workspace grant reaches the console, and no console grant descends into a workspace. Console access is its own tier, deliberately. This is why organisation level administration cannot be reached by widening a workspace role.

Which resource a request is about

A request carries an identity and names an action. It does not simply state the resource. That has to be established first, because a permission checked correctly against the wrong resource is not a check at all.

How it is established depends on where a resource records the workspace it belongs to.

How a resource's workspace is establishedWHERE A RESOURCE RECORDS ITS WORKSPACEAddressed through the workspaceAn office is stored beneath the workspacethat owns it, so its id alone is not acomplete name.A wrong workspace reaches nothing.offices · group chatssigning templates · requestsAllocated by a fieldThe id is unique across the organisation,and the workspace can change withoutthe record moving.The workspace is read from the record.browsers · namespacescalendars · cloud projectsEither way, a workspace named in the request never decides which resource the permission check runs against.

Some resources are addressed through their workspace. An office is stored beneath the workspace that owns it, so an office id on its own is not a complete name. Naming an office with the wrong workspace does not reach a different office. It reaches nothing.

Others are allocated to a workspace by a field on their own record. A browser, a data namespace, a calendar and a Humanik Cloud project each have an id that is unique across the whole organisation, and the workspace they sit in can change without the record moving. For these, the workspace is read from the record itself, and any workspace supplied in the request is ignored.

This is the property to rely on when reasoning about isolation. Holding a role in one workspace does not let you act on a resource in another by naming your own workspace in the request. The resource's own record decides which workspace it belongs to, and the permission check runs against that.

If the record cannot be found, the request is refused rather than falling back to the workspace named by the caller. One consequence is worth knowing when integrating: an id that does not exist in your organisation returns 403, not 404. A not-found response that could be told apart from a refusal would let a caller discover which ids are real.

How a decision is made

Six steps, in order. The first match wins.

Owner bypass

If the identity is the tenant owner, allow.

Self-scoped actions

Managing your own profile is always allowed.

Implicit reads

A small set of reads every member needs to load the product at all.

Load assignments

If the identity holds no assignments, deny.

Walk the policies

Role, then policies, then statements. A matching deny returns immediately and no later allow can rescue it. Allows are collected.

Default

Deny.

Two consequences worth designing around

Deny statements do not apply to the tenant owner. "Deny wins" is true for every identity except that one. The owner is the root of the tenant and is not restrictable by a policy written inside it. If you need an identity that can be restricted, use a member with a role, or a service account.

The owner never exercises steps 4 or 5. A permission problem that lives in the assignment path is invisible when you test as the owner and affects everyone else. Test with a member.

Reading an ancestor

One narrow exception exists. An identity scoped to a single office cannot read the workspace above it under the plain rule, which would leave it unable to load the page that lists its own office.

So for a navigation read on an ancestor of the boundary, statements are evaluated at the boundary instead. Two properties keep it contained: the allowlist is limited to navigation reads and can never include a write or manage action, and the role must still grant that action somewhere it can reach. A role granting only office:read gets nothing from this rule.

Machines are governed more strictly, not less

A service account authenticates with an API key rather than a signed in session. Everything after that point is identical: the same roleAssignments field, the same engine, the same policies.

With one asymmetry. A machine can never reach the owner bypass. A service account's identity is its own, never the tenant's, so step 1 cannot fire for it. Machines are subject to deny statements that the tenant owner is not.

See Service accounts.

Some resources add a second layer

Access control answers what class of action may this identity perform. For most resources that is the whole answer. Two add a per-resource membership list on top:

ResourceWhy
BrowsersA live browser holds persistent logins and a viewable session
Group chatsConversation privacy

Where a second layer exists, both must pass, and the membership layer is deliberately stricter. The browser one refuses even the tenant owner. Some blast radiuses are large enough to want explicit membership rather than access by virtue of owning the tenant.

Membership is a list, not a role

A role is granted at a boundary and covers everything under it. Membership is the opposite shape: one entry per resource, naming one identity. Holding groupchat:read across a workspace says you may read conversations. It does not say you are in this one, and only the membership list answers that.

You are a member because you were added. There is no inherited form of it and no shortcut: the person who created a channel is written into its list like anybody else.

Every way in checks it

A conversation or a browser can be reached three ways, and the check is applied at all three.

How it is readWhere the check runs
The APIOn the request, before the handler
The app, which subscribes for live updatesIn the database rules
An AI employee's tools, when you ask one to look something upOn the tool call

The second row is the one to notice. It does not pass through the API at all, so a check written only on the API would leave the surface most people read through every day ungoverned.

Reading past membership is a separate permission, and it is recorded

Some work needs it. groupchat:read:all exists for that. No ordinary role carries it, it has to be granted deliberately, and every read it permits is written to the platform log with the identity that made it.

It has no equivalent in the database rules, on purpose. Anything that reads past membership therefore goes through the API, which is the one place the decision can be recorded.

A conversation with one of your customers has no membership list. The other side is a contact rather than a user of your account, so there is nobody to add. Those conversations stay readable by the people in your account who can read conversations at all. Member scoping them would hide every customer conversation from everyone.

Invariants

These hold everywhere. If you are reasoning about whether something is possible, start here.

  • A deny returns immediately and cannot be overridden by a later allow.
  • No assignments means deny.
  • For any resource that can be moved between workspaces, its workspace is read from its own record, never from the request.
  • A resource pattern covers its descendants, in both statements and boundaries.
  • console is never an ancestor of a workspace.
  • Only navigation reads may use the ancestor rule.
  • Service accounts cannot reach the owner bypass.
  • Built-in roles and policies cannot be modified or deleted.

Next

On this page