The ticket grants a role
The request says one update on one table. The grant that closes the ticket is a database role, and it is still there after the fix ships.
Someone asks for one action on one resource in a Slack form, an approver answers Yes or No, and Formal turns the Yes into a policy exception the Connector enforces until it expires. Workflows are YAML, managed in the Control Plane, with Terraform or through the API.
trigger:
type: form-submission
actions:
- type: ask-in-chat # Yes/No in #security-approvals
- type: formal-app-command # create a PolicySuspension
if: actions.ask_approval.response == "yes"
ALLOW maya's requests to prod-postgres for 60 minutes
BLOCK the policy applies again once the suspension expiresThe problem
Production access usually arrives as a ticket that grants a role, or a password someone shares. Both are quick to hand out. Neither is scoped to the job that prompted the request, and taking it back is a separate task that nobody owns.
The request says one update on one table. The grant that closes the ticket is a database role, and it is still there after the fix ships.
A database password in an agent's environment gives every session the same access, and the logs can't say which person asked for it.
The Yes is a comment in a ticket or a chat thread. Nothing ties it to what the database accepts, so revoking it depends on someone remembering.
# With no expiry, all three stay allowed.
How it works
The requester opens a Formal form with the /formal form command or the Fill out form shortcut in Slack, or runs formal form fill on the Formal Endpoint. Fields are typed and validated, so a production request can require an incident ticket before it submits.
The workflow posts a message with Yes and No buttons to a channel, or by direct message to up to 25 approvers, and pauses until someone answers. The first answer decides. A No can require a reason, which the workflow can send back to the requester.
On Yes, the workflow calls the Formal API to create a policy suspension for that user, that policy and the requests that match its condition. The Connector lets those requests through until the expiry, then the policy blocks again and Formal deletes the suspension.
Why an exception, not a grant
A typical access request ends in a grant: a role, a group membership, a database account. In Formal, access request management ends in an exception to a policy that the Connector already evaluates on every request.
The policy keeps blocking everyone else while the suspension lets one user or group through, for the requests that match its condition, until it expires.
Masking and read-only rules hold during the exception, because only the suspended policy steps aside.
The user’s roles and the database’s accounts never changed. When the exception expires, there is nothing left to take back.
Least privilege, in NIST’s glossary, limits a user to what their assigned tasks need. A suspension scoped to one resource and one time window applies that to a single request.
The docs workflow builds the input condition from a form field, which we’d only do when that field is a select with fixed options. Anything a caller can type freely stays out, and the Devin guide builds its condition from verified token claims alone for the same reason, since the agent controls its payload and could inject CEL.
One that doesn’t compile, or doesn’t return a boolean, never applies, and Formal doesn’t report an error.
Capabilities
A form is a list of typed fields: text, number, email, URL, date, time, timestamp, select, multi-select, checkbox and radio. Each field can carry a CEL validation rule, so Slack keeps the form open until the ticket looks like INC-1234 or the reason has 20 characters.
field_env radio dev | prod
field_duration select 1h | 8h | 24h (dev only)
field_ticket string visible_if field_env == "prod"
rule matches("^INC-[0-9]+$")
ERROR Use an incident ticket like INC-1234Requests start from /formal form or the Fill out form shortcut, and approvals arrive as Yes/No messages from the Formal app. Slack is the only chat integration today. You connect a workspace with Add to Slack in the Control Plane, and each Slack permission you grant maps to one feature.
chat:write for messages and approvals, commands for the form, im:write and user lookup by email for approvers named by addressFormal maya@acme.com is requesting access to
prod-postgres. Reason: refund for INC-4821.
Approve? [ Yes ] [ No ]
ALLOW sam answered Yes: suspension created, 60 minA policy suspension lifts one policy for one user or group. A one-off suspension covers the first matching request, or ends at the safety timeout. A time-bound suspension covers every matching request until it expires. An optional CEL input condition narrows either one to a resource or a statement.
# one resource input.resource.name == "prod-postgres" # one statement type on one database input.sql_query.statement_type == "DELETE" && input.db_name == "billing" ALLOW matching requests until Expires At BLOCK everything else the policy covers
Just-in-time access
Just-in-time access management in Formal is this same workflow pointed at production: a policy blocks a resource by default, and each approved request suspends the block for one person, or one agent session, until it expires. For the concept itself, read what just-in-time access is; the goal it serves is zero standing privileges.
The pattern doesn’t change with the resource type, because the policy and its suspension are evaluated by the Connector in front of each resource. What changes is how narrow you make the exception.
An agent that signs in with OIDC can start a workflow through the API, and the workflow can read the agent’s verified token claims. In the Devin guide, a policy blocks Devin’s machine user by default, the Yes/No goes by Slack DM to the person who started the session, and the suspension covers that person and that Devin session only.
Workflows as code
Every workflow is YAML with one trigger and one or more actions. This is the docs workflow that turns a Slack form into a policy exception. The form asks for a resource and an “access until” time. The workflow asks a channel, looks up the submitter’s Formal user, and creates the suspension only if the answer is Yes and the end time is at least a minute away.
oneoff: false makes the exception time-bound: every matching request passes until it expiresoneoff: true covers only the next matching requesttrigger:
type: form-submission
name: form_submission
args:
id: form_abc123
actions:
- type: ask-in-chat
name: ask_approval
args:
message: 'Approve access request to "${{ trigger.form_submission.submission.field_resource }}" from ${{ trigger.form_submission.submitter_email }}?'
recipient_channel: some-slack-channel
integration: slack
# get_user_id: a Users List call that finds the submitter's Formal user
- type: formal-app-command
name: suspend_policy
depends_on: [get_user_id]
if: actions.ask_approval.response == "yes" && (int(timestamp(trigger.form_submission.submission.field_access_un)) > int(now) + 60) && actions.get_user_id.status_code == 200 && size(actions.get_user_id.body.users) > 0
args:
app: Policies
command:
name: PolicySuspension
type: Create
machine_user_id: user_abc123
input:
policy_id: policy_abc123
identity_type: user
identity_id: ${{ actions.get_user_id.body.users[0].id }}
input_condition: 'input.resource.name == "${{ trigger.form_submission.submission.field_resource }}"'
oneoff: false
expiration_minutes: ${{ (int(timestamp(trigger.form_submission.submission.field_access_un)) - int(now)) / 60 }}Works with
Slack carries the request and the Yes/No, Terraform or the API holds the YAML, your cloud accounts feed autodiscovered resources, and your log destinations keep the audit trail.
Splunk
PantherAudit trail
Formal records each access request from the form to the last query the exception allowed.
Workflow runs and their steps are logs with the source workflow.
The Policy Suspensions tab shows each suspension’s policy, identity, reason, condition and Expires At time.
Each request the suspension allowed is a Connector log under the requester’s identity. Triggered Policies lists each request a policy acted on.
The approval step returns responder_email, and a No with denial_reason: required also returns the approver’s comment. A later action can post both to the requester in Slack, or to your ticketing system with http-request.
When an agent asks, the log shows the agent’s machine user, the person it acts for as the end user, and its token claims.
If the audit trail has to live in your SIEM, forward the same logs to Splunk, Datadog, Panther or S3.
Slack or Catalog
Both end in the same policy suspension. Here is how a Slack workflow (Forms and Workflows) compares with the employee Catalog (Access Requests).
Slack: /formal form, the Fill out form shortcut, or formal form fill. Catalog: catalog.formal.ai, on a blocked action or an MCP server.
Slack: whoever the workflow asks, a channel or up to 25 people by direct message. Catalog: an admin, in the Access Requests queue of the Control Plane.
Slack: messages to the approver, and to the requester with send-slack-message. Catalog: none, so check the queue, or add a Slack workflow for urgent requests.
Slack: any expiry the workflow sets, in minutes. Catalog: 30 minutes to 7 days, chosen by the employee and fixed at approval.
Slack: a one-off or time-bound suspension, or any other Formal API call. Catalog: add an MCP server, grant MCP access, or create a one-time, time-bound or permanent exception.
Triggers and actions
Access requests use two of the seven triggers, form-submission and api-request. The others react to logs, to your cloud inventory and to the clock, and each one has an example in the Workflows docs.
A new-log trigger with a CEL filter can post to Slack when a policy blocks a query, with the user, the resource and the normalized statement. unique_by limits it to new keys, such as the first time a user loads a given Claude skill, or once an hour per user and resource.
When a cloud integration finds, changes or loses a database, a workflow can create the matching Formal resource or post the change to a Slack channel.
cron-schedule takes a 5-field cron expression evaluated in UTC, for a weekday compliance report to a channel, for example. If Formal misses runs during an outage, recovery decides whether they fire afterwards.
http-request sends GET, POST, PUT, PATCH or DELETE to any HTTPS endpoint. Secrets are scoped to one workflow and replaced with *** in stored step results. A non-2xx response doesn’t fail the step, so check status_code in the next action’s if.
Actions chain with depends_on and run conditionally with if. Any action can read the trigger’s output and the output of the actions before it.
The same YAML lives in the Control Plane editor, in the formal_workflow Terraform resource, or behind the API.
Customer proof
“With Formal, we can finally manage least privilege access across our entire infrastructure through a single control plane.”

FAQ
Access request management is how people ask for access, get a named approver’s decision, receive the access and lose it again, with a record of each step. For engineering teams, an access request management system has to work per resource and per action, and take the access back without a second ticket. In Formal, the grant is a policy suspension, so taking it back is its expiry.
Connect Slack in the Control Plane, create a form, then build an access request workflow with a form-submission trigger, an ask-in-chat action and a formal-app-command that creates the policy suspension. The Forms docs include an “Access Request with Approval” example to start from.
It lasts as long as the workflow sets: expiration_minutes can be fixed or computed from a form field such as an “access until” time. A suspension created through the API without an expiration lasts 24 hours. Delete it in the Policy Suspensions tab to revoke it before then.
Requests can start in either place, and both can run in the same organization. A Slack workflow fits engineers asking for production access, because the approver gets a message and the expiry is whatever the workflow sets. The employee Catalog fits requests for MCP servers and for AI actions a policy blocked, with decisions made in the Control Plane queue and no notifications sent. The Catalog page covers the employee side and the Access Requests docs list every request type.
No. People in Slack submit forms with /formal form or the Fill out form shortcut. The Endpoint adds formal form fill for people who work in a terminal, and formal form list for scripts; submissions from either go through the same server-side checks.
No. Slack is the only chat integration today, and ask-in-chat only accepts slack. To reach another system from the same access request workflow, an http-request action can call any HTTPS API or webhook and read the response.
Not when it’s set up like the Devin guide: the agent’s machine user may only trigger the workflow and mint federation tokens, and a separate workflow machine user is the only one allowed to create suspensions. The approval goes to the person named in the agent’s verified token claims.
Yes. The formalco/formal provider has formal_workflow, formal_form and formal_workflow_secret, so forms, workflows and their secrets sit in the same repository as your policies. Inside a Terraform heredoc, write $${{ so Terraform passes the workflow expression through untouched.
Keep exploring
We'll build one workflow with you: the form, the approver and the policy it suspends.