Dec 5, 2026 · 7 min read

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

A Locked rules terminal shows /status with managed settings (remote) and a pink Deny .env button; the key holds a padlock

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

SystemPut managed-settings.json here
macOS/Library/Application Support/ClaudeCode/managed-settings.json
Linux and WSL/etc/claude-code/managed-settings.json
WindowsC:\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.json anymore. If an old guide put it there, move it.
  • A managed-settings.d/ folder can sit next to the file, holding more .json files. Claude Code reads managed-settings.json first, then the folder’s files in alphabetical order, so name them 10-security.json, 20-telemetry.json. A later file’s single value replaces an earlier one, and lists like permissions.deny combine.
  • 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.

RouteWho sets itWhen Claude Code reads itFits
Admin consoleAn Owner or Primary Owner, in Organization settings > Claude Code > Managed settingsAt startup, then hourlyA Team or Enterprise plan, no device management
MDM profileWhoever runs Jamf, Intune or Group PolicyAt startup, then every 30 minutesLaptops you already manage
managed-settings.jsonWhoever can write to the system folderAt startup, and again when the file changesLinux 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

Which Claude Code settings winHighest winsManaged, for everyone it reaches: admin console, then MDM profile, then managed-settings.json. By default one is picked and the others are ignored for most keysManaged1. Admin console2. MDM profile3. managed fileClaude Code picks one of theseCommand line: --settings, one session--settingsone sessionProject local: .claude/settings.local.json, you in one projectsettings.local.jsonyou, in one repoShared project: .claude/settings.json, everyone who clones the repo.claude/settings.jsoneveryone who clones itUser: ~/.claude/settings.json, you in every project~/.claude/settings.jsonyou, in every repo
Claude Code uses the value from the highest level that sets a key, and inside the managed level, by default, it picks one source and ignores the others for most keys. From Anthropic’s settings and managed settings docs, read December 5, 2026.
Show the data
Level (highest first)File or sourceWho it affects
ManagedConsole, then MDM, then managed-settings.json (one is picked)Everyone it’s deployed to
Command line--settingsOne session
Project local.claude/settings.local.jsonYou, in one project
Shared project.claude/settings.jsonEveryone who clones the repo
User~/.claude/settings.jsonYou, 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

  1. 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.

  2. 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 .env files and secrets folder (a command like grep -r can 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.

  3. Deliver it. Paste it into the console, or copy the file to the path above on each laptop.

  4. Check one machine first. Run /status in Claude Code. The Setting sources line should say Enterprise managed settings, with (remote) for the console or (file) for the file.

  5. 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*Only key, such as allowManagedMcpServersOnly, 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 doctor reports 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.

Keep Reading