Claude Code Managed Settings: Where the File Goes, What to Lock

Claude Code managed settings are the settings your organization puts above everyone else’s: no user file, repo file or --settings value overrides a managed key. Lists like allow rules still merge with yours. You deliver them from the claude.ai admin console (Team and Enterprise plans), through an MDM profile, or as a managed-settings.json file at /Library/Application Support/ClaudeCode/ on a Mac, /etc/claude-code/ on Linux and WSL, or C:\Program Files\ClaudeCode\ on Windows. Run /status to confirm it loaded. A starter file and the order to roll it out are in the five steps below.
Setting up Claude for small teams is what I sell (Claude Setup). Everything about how managed settings work comes from Anthropic’s Claude Code docs, read December 5, 2026.
Where the managed settings file goes
| System | Put managed-settings.json here |
|---|---|
| macOS | /Library/Application Support/ClaudeCode/managed-settings.json |
| Linux and WSL | /etc/claude-code/managed-settings.json |
| Windows | C:\Program Files\ClaudeCode\managed-settings.json |
Three details the path alone doesn’t tell you (Anthropic’s managed settings docs):
- The old Windows path is dead. Claude Code doesn’t read
C:\ProgramData\ClaudeCode\managed-settings.jsonanymore. If an old guide put it there, move it. - A
managed-settings.d/folder can sit next to the file, holding more.jsonfiles. Claude Code readsmanaged-settings.jsonfirst, then the folder’s files in alphabetical order, so name them10-security.json,20-telemetry.json. A later file’s single value replaces an earlier one, and lists likepermissions.denycombine. - It’s strict JSON. A
//comment or a trailing comma is a syntax error (settings docs), and a managed file that isn’t valid JSON stops Claude Code from starting at all, on every machine you sent it to.
Console, MDM or a file: which one for a small team
There are three ways to get the same JSON onto a laptop, and they differ in who can change it and what reaches it.
| Route | Who sets it | When Claude Code reads it | Fits |
|---|---|---|---|
| Admin console | An Owner or Primary Owner, in Organization settings > Claude Code > Managed settings | At startup, then hourly | A Team or Enterprise plan, no device management |
| MDM profile | Whoever runs Jamf, Intune or Group Policy | At startup, then every 30 minutes | Laptops you already manage |
managed-settings.json | Whoever can write to the system folder | At startup, and again when the file changes | Linux boxes, images you build, a handful of laptops |
A small team without MDM has one realistic route, the console: one place, no files to copy, and it reaches cloud sessions, which a file on a laptop never does (server-managed settings docs). Know what it is, though. Anthropic calls console settings “a client-side control, not a security boundary”: on a laptop nobody manages, a user doesn’t need admin rights to get around them. An MDM profile is stronger because the OS can protect it, and even then a local admin can edit it. Managed settings keep honest people and Claude inside the lines; they don’t stop someone determined.
Two things about the console route catch people:
- On Team, everyone gets the same settings. Different configurations per group need Enterprise, and those group configurations don’t merge with each other or with the org-wide one, so each must repeat every rule you want that group to have.
- The “require approval” dialog. Console settings that run something, such as hooks, ask the user first when they log in with an API key or a gateway, and Claude Code exits if they say no. A normal Team or Enterprise login (
/login) applies them without asking.
Where managed settings sit
Show the data
| Level (highest first) | File or source | Who it affects |
|---|---|---|
| Managed | Console, then MDM, then managed-settings.json (one is picked) | Everyone it’s deployed to |
| Command line | --settings | One session |
| Project local | .claude/settings.local.json | You, in one project |
| Shared project | .claude/settings.json | Everyone who clones the repo |
| User | ~/.claude/settings.json | You, in every project |
The trap is inside the top box. By default Claude Code takes the highest managed source that sets a real setting and ignores the rest, with no warning. Set one rule in the console and, wherever Claude Code fetches it, most of the managed-settings.json you deployed last month stops counting. A few keys still come from every source (environment variables among them), and login keys come from the file ahead of the console. /status names the source it used and the ones it skipped. Lists still merge across the other levels, so a managed deny rule and a repo’s allow rules both apply.
Set up Claude Code managed settings in five steps
Pick the two or three rules that must hold even if someone edits the repo. I’d start with secrets and the permission bypass. Everything about how your team works (commands, hooks that help, the allow list) can stay in the repo’s
.claude/settings.json, where people can read it. Anthropic’s list of controls covers sandboxing, MCP servers, plugins and login.Write the file. A starter, built from the examples in Anthropic’s docs:
{ "permissions": { "deny": ["Read(./.env)", "Read(./.env.*)", "Read(./secrets/**)"], "disableBypassPermissionsMode": "disable" } }It stops Claude Code’s file tools, and the shell commands it recognizes, from reading the project’s
.envfiles andsecretsfolder (a command likegrep -rcan still reach them, Anthropic’s permissions docs warn), and turns off--dangerously-skip-permissions. Anthropic’s own example adds"allowManagedPermissionRulesOnly": true, which makes the managed file the only source of permission rules. Leave that out on a small team unless you mean it. Every allow rule in your repo stops counting, so people get prompted for everything the repo used to allow, and every deny rule your repo relies on has to move into the managed file too.Deliver it. Paste it into the console, or copy the file to the path above on each laptop.
Check one machine first. Run
/statusin Claude Code. The Setting sources line should say Enterprise managed settings, with(remote)for the console or(file)for the file.Then roll it out, and tell the team why. A rule nobody understands gets worked around, by a person or by Claude.
What managed settings don’t cover
- Other tools. Managed settings bind Claude Code only. Someone calling the API from another tool isn’t under them.
- Cowork. Claude Code inside Cowork never fetches the console’s settings, even on a Team or Enterprise login. On the user’s own machine it reads the device’s MDM profile or file, so if your team uses Cowork, the console alone leaves it out.
- Cloud sessions from a file. A file or MDM profile on a laptop doesn’t reach a session running in Anthropic’s cloud. Only server-managed settings can.
- Lists people can add to. A user can still add allow rules and MCP servers of their own. Locking a list takes its
allowManaged*Onlykey, such asallowManagedMcpServersOnly, and then only the managed list counts.
The employer and Claude chats post covers what these settings let an employer see. Is Claude Code safe covers the permission modes these rules lock.
When /status doesn’t show your managed settings
- The Setting sources line has no managed entry. Claude Code found no managed source with a policy key in it. Check the path for the OS, and check that the file sets a real setting.
- It names a different source than the one you edited. A higher source is present: on a team without MDM, that’s the console over a file. Edit that one, or remove it.
- Claude Code won’t start at all. The managed file isn’t valid JSON. Look for a comment or a trailing comma.
- A console change hasn’t arrived. It’s fetched at startup and hourly, so restart the session.
claude doctorreports whether the fetch worked.
What we keep in the repo instead
Our rules live in each repo’s shared settings file, and in the team setup post that was 16 read-only allow rules and 9 hooks on September 19. On a small team I’d keep most of it there, where people can read it.
This site’s repo shows why the line matters. Several Claude sessions work in one checkout at once, and on November 12 we added six deny rules, Bash(git add -A *) among them, because a sweeping add would commit another session’s work. That rule is about how this repo works, so it belongs in the repo: anyone who clones it gets it, and nobody else needs it. A rule like “never read .env” protects the company whatever repo someone opens, so it goes up a level, into managed settings.
Setting it up with your team
If your team would rather set this up themselves, with someone alongside, that’s what Coaching ($1,997) is for: I coach and your team does the typing, on your own files, and afterward they know how every piece of their setup works.


