Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
---
title: "Access control"
sidebarTitle: "Overview"
description: "Control who can manage PAM and who can connect to each account."
---
Access to Infisical PAM has two levels:
- **Product membership** makes someone a member of PAM and decides whether they can manage PAM itself
- **Folder and account memberships** decide what someone can do with the accounts in a folder, such as connect to them
Users, groups, and [machine identities](/documentation/platform/identities/machine-identities) need both. An [AI agent](/documentation/platform/pam/ai-agents/overview) has no access of its own and uses the access of the user or machine identity that starts it.
## Product membership
A product membership gives a user, group, or machine identity one of two roles in PAM:
| Role | What it allows |
| --- | --- |
| **Admin** | Manage account templates, folders, and product members |
| **Member** | Use PAM, with access only to the folders and accounts they have a role on |
A product admin can't connect to an account unless they also have a role on the account or its folder.
### Add product members
<Steps>
<Step>
Go to **Privileged Access Management** > **Access Control**.
</Step>
<Step>
Select the tab for the kind of member you're adding, then select the button on that tab:
- **Members**: **Invite Member**
- **Groups**: **Add Group**
- **Identities**: **Add Identity**
</Step>
<Step>
Select the users, group, or identity, choose **Admin** or **Member**, and confirm.
</Step>
</Steps>
On the **Identities** tab, you can also create a new machine identity for PAM. To learn how an AI agent uses one, see [Run agents unattended](/documentation/platform/pam/ai-agents/unattended).
### Organization admins
When your organization first opens PAM, everyone with the organization Admin role at that moment becomes a product admin.
If you get the organization Admin role later, you aren't a member of PAM yet. Open **Privileged Access Management** and select **Join as Admin** to add yourself as a product admin. You can also [join any folder as its Admin](/documentation/platform/pam/folders/overview#join-a-folder-as-an-organization-admin).
## Folder and account memberships
A folder or account membership gives a product member one of the following roles on a [folder](/documentation/platform/pam/folders/overview) or an [account](/documentation/platform/pam/accounts/overview):
| Role | What it allows |
| --- | --- |
| **Admin** | Manage the accounts, sessions, and memberships in the folder or account |
| **Operator** | Launch sessions and [view account credentials](/documentation/platform/pam/accounts/view-credentials) |
| **Connector** | Launch sessions and request access to accounts that need approval |
| **Auditor** | View audit logs and session recordings |
Infisical records a session for every connection, but not what someone does with a credential they've viewed. Give the Operator role only to people who need the credential itself.
### Folder or account
A role on a folder applies to every account in the folder, including accounts added later. Grant access on folders whenever you can.
A role on an account applies to that account only. Use it when someone needs one account in a folder but not the others, such as a contractor who needs one database.
### Assign a role
<Steps>
<Step>
Go to **Privileged Access Management** > **Accounts**.
</Step>
<Step>
Open the options menu on the folder's or account's row and select **Configure**, then select the **Permissions** tab.
</Step>
<Step>
Select **Assign Access**.
</Step>
<Step>
Choose the **Assignee** and the **Role**. To remove the access automatically after a set time, choose an **Expiry**.
</Step>
<Step>
Select **Assign**.
</Step>
</Steps>
The **Assignee** list only includes product members. To give a role to someone who isn't in the list, [add them to PAM](#add-product-members) first.
If you assign a role to a group, the role follows the group's membership. When someone joins or leaves the group, including through a sync from an identity provider such as Okta or Microsoft Entra ID, their access changes with it.
### What machine identities can't do
Machine identities can hold any role, but the following stay with users and groups:
- **Connecting in the browser**: Machine identities connect through the [CLI](/cli/reference#pam-agentic-access)
- **Approving access requests**: A machine identity can request access, but only users and groups can [approve requests](/documentation/platform/pam/access-requests/overview)
- **Accounts that require MFA**: A machine identity can't complete an MFA challenge, so it can't connect to an account whose template requires MFA
## Example setup
The following example gives a platform team access to its databases:
1. A product admin adds the platform team's lead to PAM as a **Member**
2. The product admin creates a `platform-team` folder and gives the team lead the **Admin** role on it
3. The team lead adds the team's accounts to the folder
4. The team lead gives the rest of the team the **Connector** role on the folder
The team can then connect to every account in the folder, and the team lead manages the folder's access without involving the product admin.