Skip to content
mcp-data-platform composable mcp data platform
v1.x part of txn2 ↗

People

A person's personas come from the roles their identity provider sends, unless an administrator decides them in the platform. This page covers what an administrator can decide about a person, in the portal under Admin > Users and through the admin API under /api/v1/admin/people:

  • holding every persona their roles grant, rather than one (personas.combine)
  • personas assigned in the platform, which replace what the identity provider's roles give
  • No access, which refuses every request the person makes
  • addresses that sign in as the person, and which one is primary

Holding several personas

By default a person whose roles match several personas gets the one with the highest priority (Role Mapping). With personas.combine: all, they hold every persona their roles grant:

personas:
  combine: all        # priority (default) or all

An administrator can change it at run time under Admin > Settings > Personas (PUT /api/v1/admin/settings/personas). The saved value applies on every replica and wins over the file's. Before saving, the page shows who the switch would change and what they would gain or lose, from the roles each person signed in with last (GET /api/v1/admin/settings/personas/preview?combine=all).

What a person holding several personas can do:

Rule
A tool call Allowed only when one persona they hold allows the tool, the connection and the API route together. Holding a tool through one persona and a connection through another does not allow the call.
tools/list, visible connections Everything any persona they hold allows.
Portal areas The highest level any persona they hold gives.
Shares, grants, endpoint callers, secrets Anything shared or granted to any persona they hold.
Agent context Every held persona's prefix and instructions, in priority order, each once.
Service account A caller is one when any persona they hold is.
External personas A person whose roles grant an external persona holds that persona alone.

The audit log records the persona that allowed each call (allowed_by) and every persona held (personas). The persona column keeps the highest-priority one.

A persona name may not contain +: the platform joins the names of held personas with it.

Personas assigned in the platform

An administrator can assign a person's personas on their page in Admin > Users (PUT /api/v1/admin/people/{email}/personas). From their next request, the person holds exactly those personas, whatever roles their identity provider sends, and assigned personas always combine. Return to identity provider roles (DELETE .../personas) removes the assignment.

  • An administrator can add someone who has not signed in yet (POST /api/v1/admin/people), with or without personas. They get the assigned personas on their first sign-in, once their identity provider says the address is verified.
  • External personas cannot be assigned: they come only from identity provider roles.
  • The platform refuses any change that would leave nobody able to reach the administrator persona.
  • An address is matched only when the identity provider sends email_verified: true. A person signing in with an unverified address gets neither assigned personas nor their aliases.
  • A role an identity provider sends that starts with platform-persona: is ignored and logged. The platform reserves that prefix.

Assignments live in the database and are not read from the configuration file.

No access

No access (PUT /api/v1/admin/people/{email}/no-access) refuses every request from the person on their next one, whatever their identity provider says:

  • the portal, agents and the admin API
  • API keys bound to them
  • runs of automations they own or authored, and requests to their endpoints (answered 503 this endpoint is not available)

Nothing they own is deleted or moved. Clearing it (DELETE .../no-access) restores their access on their next request.

Addresses

An administrator can add addresses that sign in as a person (POST /api/v1/admin/people/{email}/addresses). Signing in through one opens the person's account: everything they own, everything shared with them, and their personas. The audit log keeps the address that signed in (signed_in_email).

  • Only an address the platform has never seen can be added. An address that signed in, has a key bound to it, receives a share, or already signs in as someone is refused, with what was found.
  • The person is emailed at their primary address when an address is added.
  • Make primary (PUT .../primary) chooses the address the platform shows and emails. Records stay under the address the person started with, so nothing is moved or rewritten.
  • The primary address cannot be removed: make another primary first.
  • A person chooses which of their addresses their notifications go to under Settings (PUT /api/v1/portal/me/notify-to). It is their primary unless they choose another.

How it takes effect

Each replica holds who is assigned, refused and aliased in memory. It reloads when PostgreSQL notifies it of a change (people_changed), and once a minute in case a notification was missed. Until the first load succeeds, every person is treated as having no roles; an API key bound to nobody keeps its own roles.

Effective access

A person's page shows their access (GET /api/v1/admin/people/{email}/access): every tool and connection, which persona grants each, the rule that does it, and why each other persona does not. It also names a call the person cannot make even though they hold the tool and the connection, each through a different persona.

A persona's People tab (GET /api/v1/admin/personas/{name}/people) lists who it is assigned to, the roles that give it, and who holds it together with another persona.