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

# Cursor

> Connect your Cursor Enterprise team to Oleria to continuously discover team members, billing groups, roles, and audit activity in your AI code editor.

Connect Cursor to Oleria to see who has access to your Cursor Enterprise team: every team member, their role, the billing groups they belong to, and the audit trail of admin actions taken against the team. Oleria reads this data from the Cursor Admin API, which is available on Cursor's Enterprise plan. This page walks through generating an Admin API key in Cursor and connecting it to your Oleria workspace.

## What Oleria discovers

Once connected, Oleria continuously discovers and maps the following from your Cursor team:

* **Accounts** - every team member, with email, name, role (owner or member), status, and admin flag.
* **Roles** - the two built-in Cursor team roles, Owner and Member, and which accounts hold each.
* **User groups** - Cursor billing groups and their membership.
* **Activity** - audit log events such as sign-ins, sign-outs, and member add, remove, and role-change actions.

<Note>
  Cursor is a developer tool, not an access-controlled resource system - it has no repositories, files, or permissions for Oleria to enumerate, so this integration does not populate Access Inventory or resource-level Access Graph data. Cursor also does not expose per-user MFA or SSO enforcement, so Oleria reports these as unavailable rather than inferring them.
</Note>

## Prerequisites

* Cursor Enterprise plan - the Admin API this integration uses is available only on Enterprise-tier teams.
* Team Admin or Owner access in Cursor to generate an Admin API key.

## Generate an admin API key in Cursor

<Steps>
  <Step title="Open API Keys">
    Sign in to the [Cursor dashboard](https://cursor.com/dashboard) as a team admin and go to **API Keys**.
  </Step>

  <Step title="Create a new key">
    Select **New API Key**. Cursor generates a key in the form `crsr_...`.

    <Warning>
      Copy the key immediately - Cursor does not show it again after you leave the page. Treat it like a password: anyone with this key can read your team's members, groups, and audit logs, and, if you enable remediation, remove team members and change billing group membership.
    </Warning>

    The key is tied to your Cursor organization rather than to the admin who created it, so it keeps working even if that admin's account is later disabled.
  </Step>
</Steps>

## Connect Cursor to Oleria

<Steps>
  <Step title="Open the integration">
    Go to your Oleria workspace, select **Integrations** -> select **Cursor**.
  </Step>

  <Step title="Complete the connection form">
    Paste your API key:

    | Field   | Notes                                                |
    | :------ | :--------------------------------------------------- |
    | API Key | Required. The Admin API key you generated in Cursor. |
  </Step>

  <Step title="Save the integration">
    Select **Authenticate** to validate and save the integration. Oleria calls Cursor's team members endpoint to confirm the key works before saving.
  </Step>
</Steps>

## Verify the integration

Confirm the Cursor instance appears in your Oleria workspace's connected integrations. After the first sync completes, you can review the discovered accounts, roles, and billing groups. Audit log activity syncs on a separate, more frequent cadence.

<Note>
  Cursor's Admin API rate-limits most endpoints to 20 requests per minute per team. Oleria's sync schedule stays well within this limit, so rate limiting should not affect normal syncs.
</Note>

<Note>
  If you rotate or revoke your Cursor API key, edit the integration in Oleria, paste the new key, and select **Update**. The next sync runs with the new key.
</Note>

## Remediation actions

Standard integrations are configured read-only. If you enable remediation for Cursor, Oleria can take the following actions using the same API key:

| Action                    | What it does                                  | Revert                                                                                       |
| :------------------------ | :-------------------------------------------- | :------------------------------------------------------------------------------------------- |
| Remove team member        | Removes a member from the Cursor team.        | Not supported - Cursor has no re-invite API, so this action cannot be undone through Oleria. |
| Add to billing group      | Adds a member to a Cursor billing group.      | Supported - removes the member from the group.                                               |
| Remove from billing group | Removes a member from a Cursor billing group. | Supported - adds the member back to the group.                                               |

<Warning>
  Removing a team member from Cursor cannot be reversed through Oleria. Confirm the account should be removed before running this action.
</Warning>

## Contact us

For questions about this integration, contact us at [support@oleria.com](mailto:support@oleria.com).
