docs/documentation/platform/pam/accounts/overview.mdx
Accounts are the databases and servers you want to manage through PAM. Each account stores the connection details and credentials needed to connect — hostname, port, username, password, and so on.
When users connect to an account, they never see the actual credentials. The connection is proxied, credentials are injected automatically, and everything is recorded.
PAM supports the following account types:
| Type | What it connects to | Web Access |
|---|---|---|
| PostgreSQL | PostgreSQL databases | ✓ |
| MySQL | MySQL databases | ✓ |
| MS SQL | Microsoft SQL Server | |
| MongoDB | MongoDB databases | |
| SSH | Linux/Unix servers | ✓ |
| Kubernetes | Kubernetes clusters | |
| AWS IAM | AWS IAM roles | ✓ |
| Windows | Windows servers (RDP) | ✓ |
| Windows AD | Windows via Active Directory | ✓ |
Each type has specific connection details. See the type-specific pages for details.
Accounts live inside folders. To add one:
<Steps> <Step title="Start adding an account"> Go to **Privileged Access Management → Accounts** and click **Add Account**. </Step> <Step title="Select a folder and template"> Choose which folder to add the account to, then select a [template](/documentation/platform/pam/templates/overview). The template determines the account type and all the rules that apply. </Step> <Step title="Enter connection details"> Provide the hostname, port, and other connection information. </Step> <Step title="Enter credentials"> Provide the username and password (or SSH key/certificate settings). </Step> <Step title="Save"> Click **Create**. </Step> </Steps>Once an account exists, users with access can connect from the My Access page:
Go to Privileged Access Management → My Access, find the account, and click Launch → Connect in Browser. This opens:
Run the CLI command to start a local proxy:
infisical pam access <folder>/<account>
The command outputs the local port to connect to. Then connect with your preferred client (psql, pgAdmin, ssh, etc.) against localhost using that port. The proxy handles authentication automatically.
Flags:
| Flag | What it does |
|---|---|
--port | Use a specific local port (otherwise one is assigned automatically) |
--reason | Provide a reason (if required by the template) |
Most access is granted at the folder level — if you have access to the folder, you have access to all accounts in it.
But sometimes you need to grant access to just one account. For that, use direct account memberships:
Direct memberships are for exceptions — a contractor who needs one specific database, or temporary elevated access to a single account.
For detailed instructions on creating and connecting to specific account types, see the type-specific pages in the sidebar.