Skip to content

Delegated permissions

A delegation acts for an existing provider user while preserving the delegation’s separate Cedar identity. It uses the user’s current assigned roles for ordinary work, but it doesn’t automatically get every permission the user has. View-only delegations can read permitted work but cannot submit changes.

  • Sign in with a valid delegation secret if the represented user has at least one role, and select only from that user’s assigned roles.
  • Start processes, draft and complete steps, and modify submitted form fields when the required role matches. Directly assigned Todos still require the delegation to represent the assignee. The same role and assignment rules apply when correcting public completion delivery failures.
  • View executions started by the represented user and download or delete files owned by that user.
  • View and update Lists allowed by the user’s roles.
  • Call untagged GraphQL fields and fields tagged providerUser if it has a role. Any separate resource checks still apply.

Custom Cedar policies granted to human identities do not transfer to delegations. They must be explicitly granted.

A delegation cannot list, rename or revoke tokens. It can also not issue new delegations. An explicit Cedar forbid policy make sure this permission can not be granted.

The default Cedar policy permits login on PF::Application for a PF::Delegation with at least one role. The delegation gets its roles from the user it represents. A valid delegation secret proves the identity; the Cedar check determines whether that identity can sign in.

permit (
principal,
action == PF::Action::"login",
resource is PF::Application
)
when {
(principal is PF::ProviderUser || principal is PF::Delegation) &&
principal.roles.isEmpty() == false
};

Cedar checks complete on the Todo’s PF::Step. By default, the delegation must have the role required by the step. If the Todo is assigned to a specific user, the delegation must also represent that user. Having the right role alone doesn’t let a delegate complete someone else’s assigned Todo.

permit (
principal,
action == PF::Action::"complete",
resource is PF::Step
)
when {
(principal is PF::ProviderUser || principal is PF::Delegation) &&
resource has role &&
principal has roles &&
principal.roles.contains(resource.role)
}
unless {
context has assignedTo && !(principal in context.assignedTo)
};

The in check matches both the assignee and delegations that represent the assignee. Both policies are built in; you don’t need to add them to your organisation’s Cedar policies.

When you connect an MCP client, the consent screen defaults to View work. If the client requests permission to act, you can choose View and act instead.

  • View work is read-only. For example, ask “Which purchase requests are waiting for my approval?” The client can show the To-Dos it has permission to see, but it cannot approve a request.
  • View and act also lets the client make changes on your behalf. For example, ask “Approve the purchase request for the office chair.” The client can complete the approval To-Do if the delegation has the required role and, if the To-Do is assigned to someone, represents that assignee.

In Cedar, View work sets principal.viewOnly to true, and View and act sets it to false. The built-in policy below blocks GraphQL mutations, including custom mutations, for view-only delegations even when another policy would permit them:

forbid (principal is PF::Delegation, action, resource)
when { principal.viewOnly }
unless {
action in PF::Action::"viewOnlyAllowed" ||
(action in [PF::Action::"complete", PF::Action::"publicCompletionCorrection"] &&
context has inspectingStep && context.inspectingStep)
};

The Cedar schema puts the GraphQL query action in the viewOnlyAllowed action group. This rule therefore leaves queries, including custom queries, eligible for a permit. The mutation action is outside that group and does not match the inspectingStep exception, so this rule blocks it for view-only delegations.

The inspectingStep exception lets Process Focus check what the delegation could complete when previewing a step or form. It does not allow submission. When viewOnly is false, this rule does not apply; a separate permit must still allow the action.