> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Privileged Access Management

> Give people and agents identity-based, logged, just-in-time access to databases, servers, clusters, and APIs

## Overview

Formal is a privileged access management (PAM) layer for databases, servers, clusters, and APIs.
Shared passwords and standing SSH keys are hard to audit and hard to revoke.
With Formal, people and AI agents connect as themselves. The Connector holds the credential and logs every query and command.

## How Formal helps

| Goal | How Formal does it |
| - | - |
| No shared credentials | Users sign in with [SSO](https://docs.formal.ai/docs/guides/integrations/sso.md). The Connector signs in to the resource with a [native user](https://docs.formal.ai/docs/guides/core-concepts/resources/native-users.md). |
| Least privilege | [Policies](https://docs.formal.ai/docs/guides/policies/introduction.md) block writes, limit rows, and require MFA per identity and resource. |
| Just-in-time access | [Workflows](https://docs.formal.ai/docs/guides/configuration/workflows.md) route access requests to reviewers in Slack and expire approved access. |
| Full audit trail | [Logs](https://docs.formal.ai/docs/guides/observability/logs.md) and [sessions](https://docs.formal.ai/docs/guides/observability/sessions.md) record who ran what, where, and when. |

## Roll it out

**1. Deploy a Connector**

Run it next to your resources. See [Deploy a Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/deployment.md).

**2. Add resources and native users**

See [Resources](https://docs.formal.ai/docs/guides/core-concepts/resources/introduction.md), or let a [cloud integration](https://docs.formal.ai/docs/guides/integrations/clouds/introduction.md) discover them.

**3. Connect your identity provider**

Set up [SSO](https://docs.formal.ai/docs/guides/integrations/sso.md) and [SCIM](https://docs.formal.ai/docs/guides/integrations/scim.md) so users and groups stay in sync.

**4. Give users the Endpoint**

Users install the [Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) and run `formal connect <resource-name>`.

**5. Write policies**

Start with [Policy Examples](https://docs.formal.ai/docs/guides/policies/examples.md), and test in [dry-run mode](https://docs.formal.ai/docs/guides/policies/operations.md#2-dry-run-mode).

## Guides

> [card] [Block writes to production](https://docs.formal.ai/docs/guides/policies/examples.md#block-writes-to-production)
>
> Let engineers read production but not change it

> [card] [Rate limit access](https://docs.formal.ai/docs/guides/policies/examples.md#rate-limiting-access)
>
> Block users who access a resource too often

> [card] [Give Devin just-in-time database access](https://docs.formal.ai/docs/guides/example-use-cases/devin-database-access-oidc.md)
>
> OIDC login with human approval in Slack

> [card] [Give AgentCore agents database access](https://docs.formal.ai/docs/guides/example-use-cases/agentcore-harness-database-access.md)
>
> Query a database with an AWS identity

> [card] [Block specific MCP tools](https://docs.formal.ai/docs/guides/core-concepts/resources/mcp.md#example-block-a-specific-tool)
>
> Block MCP tool calls by name

> [card] [Triggered policies and suspensions](https://docs.formal.ai/docs/guides/policies/suspensions.md)
>
> Grant time-bound or one-off exceptions

## Recipes

[Recipes](https://docs.formal.ai/docs/guides/getting-started/recipes.md) create this configuration for you in the Control Plane.

* **Enforce Read-Only Access to Data:** lets people and agents read data while blocking changes and deletions.
* **Require Sign-In Confirmation:** asks for multi-factor confirmation before sensitive sessions start.
* **Review Access Requests:** routes access requests to Slack reviewers and sets how long access lasts.

## Next Steps

> [card] [Protect sensitive data](https://docs.formal.ai/docs/guides/use-cases/protect-sensitive-data.md)
>
> Mask and classify what those sessions return

> [card] [Explore the Access Graph](https://docs.formal.ai/docs/guides/observability/access-graph.md)
>
> See who reaches which resource


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.