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

# User Roles & Permissions

> Learn about Portkey's comprehensive role-based access control system across Organizations and Workspaces.

Portkey implements a comprehensive role-based access control (RBAC) system that operates across two main hierarchical levels: **Organizations** and **Workspaces**. This dual-layer approach ensures precise control over who can access what resources, enhancing security while enabling effective team collaboration.

## Organization Level

Organizations represent the highest level of structure within Portkey. At this level, there are three distinct roles with varying levels of administrative control:

<CardGroup cols={3}>
  <Card title="Owner" icon="crown" iconType="solid" color="#0e7490">
    The highest authority with complete control of the organization
  </Card>

  <Card title="Admin" icon="user-shield" iconType="solid" color="#0e7490">
    Extensive administrative privileges across the organization
  </Card>

  <Card title="Member" icon="user" iconType="solid" color="#0e7490">
    Base-level organization access, typically assigned to workspace roles
  </Card>
</CardGroup>

### Organization Role Permissions

| Capability                   |                     Owner                     |                     Admin                     |       Member (without workspace)       |
| ---------------------------- | :-------------------------------------------: | :-------------------------------------------: | :------------------------------------: |
| Billing Management           | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    | <Icon icon="xmark" iconType="solid" /> |
| Manage Organization Settings | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Create/Delete Workspaces     | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Manage Admin API Keys        | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Edit User Roles              | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Invite Organization Users    | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Configure Access Permissions | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |
| Access to All Workspaces     | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="xmark" iconType="solid" /> |

<Note>
  **Important**: Organization Owners and Admins automatically receive Admin-level access to all workspaces within the organization. All users must first be added as Organization Members before they can be invited to any workspace.
</Note>

## Workspace Level

Workspaces are sub-organizational units that enable better team and project management. Each workspace maintains its own access control structure with three distinct roles:

<CardGroup cols={3}>
  <Card title="Admin" icon="user-tie" iconType="solid" color="#8b5cf6">
    Complete control over workspace configuration and team management
  </Card>

  <Card title="Manager" icon="user-gear" iconType="solid" color="#8b5cf6">
    Administrative capabilities for team and resource management
  </Card>

  <Card title="Member" icon="user" iconType="solid" color="#8b5cf6">
    Read-only access to workspace resources
  </Card>
</CardGroup>

### Workspace Role Permissions

| Capability                               |                     Admin                     |                    Manager                    |                     Member                    |
| ---------------------------------------- | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: |
| Invite Organization Members to Workspace | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
| Assign Workspace Roles (including Admin) | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
| Create Workspace API Keys                | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
| Create/Update/Delete Resources           | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
| View Workspace Resources                 | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |

<Note>
  **Member Access**: Workspace Members have read-only access to workspace resources (logs, prompts, config, virtual keys etc.) but cannot create, update, or delete any resources.
</Note>

## Access Permission Configuration

Organization Owners and Admins can configure access permissions for various resources across workspaces. These settings determine what each role can access:

<Note>
  By default Workspace Admins and Managers have the same permissions unless changed by Organization Owner or Admin.
</Note>

<CardGroup cols={3}>
  <Card title="Logs Access Permissions" icon="clipboard-list" iconType="solid" href="/product/administration/configure-logs-access-permissions-in-workspace">
    Control which roles can view, filter, and export logs
  </Card>

  <Card title="Virtual Key Permissions" icon="key" iconType="solid" href="/product/administration/configure-virtual-key-access-permissions">
    Manage access to provider API keys for different roles
  </Card>

  <Card title="API Key Permissions" icon="key-skeleton" iconType="solid" href="/product/administration/configure-api-key-access-permissions">
    Configure API key creation and management rights
  </Card>
</CardGroup>

<Note>
  **Key Workflow**: Users must first be added as organization members before they can be invited to any workspace. Workspace admins and managers can then invite organization members to their workspace and assign appropriate roles.
</Note>

## Related Topics

<Card title="Organizations" href="/product/enterprise-offering/org-management/organizations" />

<Card title="Workspaces" href="/api-reference/admin-api/control-plane/workspaces/create-workspace" />

<Card title="API Keys (AuthN and AuthZ)" href="/product/enterprise-offering/org-management/api-keys-authn-and-authz" />

<Card title="Access Control Management" href="/product/enterprise-offering/access-control-management" />
