The short answer
First, in the Cursor dashboard, enforce Privacy Mode for the whole team so no one can turn it off. Second, leave the models that require data retention unapproved, and ask people not to use their own API keys, which zero data retention doesn't cover. Third, set up SSO, enforce Team Rules, and have every developer set the agent's run mode to Auto-review with Sandboxing on. Org-wide enforcement of run mode, MCP and model access is an Enterprise feature.
Enforce Privacy Mode for the whole team
With Privacy Mode on, Cursor says your code is never used for training. For teams it's on by default, but a member can turn it off unless an admin enforces it.
Wherecursor.com/dashboard›Privacy settings
- Open the team dashboard at cursor.com/dashboard.
- Enforce Privacy Mode organization-wide, so members can't disable it.
- Tell the team which plan and settings are approved.
Keep data-retaining models and personal keys out
Some models require data retention. Cursor keeps them off by default, and an admin has to approve them. And when a developer uses their own API key, Cursor's zero-retention agreements with model providers don't apply.
Wherecursor.com/dashboard›model approvals
- Leave the models that require data retention unapproved unless you've reviewed the provider's terms.
- Put "no personal API keys in Cursor" in your written policy, and check for them in reviews.
- On corporate devices, use the Allowed Team IDs MDM policy to block personal Cursor accounts. Check that your plan supports it.
Make the agent review before it runs
Cursor's agent can run terminal commands. Cursor's own hardening guide recommends Auto-review rather than Run Everything, with sandboxing on. On Teams these are per-developer settings; enforcing them across the organization takes Enterprise.
WhereCursor›each developer's agent settings
- Ask every developer to set the run mode to Auto-review, not Run Everything.
- Turn on Sandboxing for the agent.
- Set up SSO for the team (the plan table lists it for Teams) and enforce Team Rules that tell the agent never to read
.envfiles or secrets.
Team Rules are instructions to the model, not a hard block. MCP configuration, auto-run controls, model access restrictions, the repository blocklist and audit logs are Enterprise-only.
More you can do today, for free
- Use Protected Git Scopes and Active Sessions in the Teams dashboard to see and limit what's connected.
- Keep a
.cursorignorefile in each repository to keep secret files out of the agent's context. It's guidance for the tool, not a security boundary. - Keep production credentials off developer laptops altogether.
Free and open-source tools to check out
None of these needs a purchase. Read each tool's own documentation before you run it on company systems.
- Agent Scan (formerly mcp-scan)Apache-2.0Scans the MCP servers, agent configs and skills on a machine for tool poisoning, prompt injection and risky permissions.
- GitleaksMITScans repositories and their history for committed secrets, such as API keys an AI agent wrote into a config file. Runs as a pre-commit hook or in CI.
- Semgrep Community EditionLGPL-2.1Static analysis that catches insecure patterns in code, including the code AI assistants write, before it merges.
- osqueryApache-2.0 / GPL-2.0Query laptops like a database: which AI apps, browser extensions and CLI agents are installed, and where their config files live.
At scale
Many agents, one policy: where Glasswarden comes in
Cursor's enforcement lives on its Enterprise plan, and your developers don't only use Cursor: Claude Code, Codex CLI and GitHub Copilot sit beside it. Glasswarden, from Drycraf, sees every agent's sessions and tool calls through agent hooks and OpenTelemetry, holds them to one policy, and sends fixes straight back to the agent that caused the problem.
Questions admins ask
Does Cursor train on our code?
With Privacy Mode on, Cursor says your code is never used for training. For teams it's on by default, and admins can enforce it so members can't turn it off.
Can a Cursor Teams admin block MCP servers?
Not on Teams. MCP configuration, auto-run controls, model access restrictions and audit logs are Enterprise features.
What about the Grok Bot in Cursor?
Grok Bot signs in with a Cursor account, and its admin settings are on the Grok Bot page of the Cursor dashboard. See our Grok guide.
Sources
- Cursor: Teams and Enterprise settings
- Cursor: team dashboard
- Cursor: privacy
- Cursor: security hardening
Checked against the vendors' own documentation on November 6, 2026. Admin consoles change: if a menu has moved, the vendor's page above is the authority. Product names are trademarks of their owners; Drycraf is independent of them.