CertSafari
    Anthropic Claude Certified Architect – Professional (CCAR-P)· Lessons

    Domain 7 · Lesson 36/38

    Managed policy for Claude Code: delivery, locks and model pins

    Configure Claude tools and environments for teams

    12 min read
    2.33% of exam
    3 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    What you will be able to do

    • Choose a delivery mechanism for managed settings and know when each one is re-read
    • Explain how first-wins and merge resolve competing managed sources, and use /status to see which source applied
    • Lock permission rules, MCP servers, plugins and hooks to centrally approved sets
    • Pin the provider, the models and the Claude Code version range a team may use

    1.Delivering managed settings to every machine

    Managed settings are the top settings scope. Nothing a developer writes in their own files can override them, which makes them the only place to enforce organization policy. The policy is a JSON document with the same keys as any settings file. The hard part is getting it onto every machine and keeping it current.

    A managed-settings.json that denies secret reads, disables bypass mode and makes managed rules the only source of permissionsjson
    {
      "permissions": {
        "deny": [
          "Read(./.env)",
          "Read(./secrets/**)"
        ],
        "disableBypassPermissionsMode": "disable"
      },
      "allowManagedPermissionRulesOnly": true
    }
    Delivery mechanisms ranked from highest to lowest priority, and when Claude Code re-reads each
    MechanismHow you deliver itWhen Claude Code reads itPriority
    Server-managedclaude.ai admin console or a self-hosted Claude apps gatewayFetched at startup and polled hourlyHighest
    MDM or OS-level policymacOS com.anthropic.claudecode profile, or HKLM\SOFTWARE\Policies\ClaudeCode via Jamf, Intune or Group PolicyRead at startup and checked for changes every 30 minutesHigh
    File-basedmanaged-settings.json in /Library/Application Support/ClaudeCode/, /etc/claude-code/ or C:\Program Files\ClaudeCode\Read at startup and reloaded when a file changesMedium
    Windows user registryHKCU\SOFTWARE\Policies\ClaudeCodeChecked every 30 minutes, and used only when no admin document sits above itLowest

    Choose by what you already run. Server-managed settings give a claude.ai organization one place to change policy without touching any device. MDM fits fleets you already manage with Jamf or Intune. The file is for Linux hosts, machines without MDM, and images you build yourself. On the developer's machine, the terminal, the IDE extensions and Agent SDK sessions all read these sources. The SDK reads them even when settingSources excludes the user, project and local files.

    Two gaps catch teams out. First, a cloud session in an Anthropic-hosted environment cannot see a device's MDM profile or file, so its policy has to come from server-managed settings. Second, server-managed settings are fetched only when the session authenticates directly to Anthropic's API, or through a gateway login. A developer on another provider, or with ANTHROPIC_BASE_URL pointed elsewhere, never receives them. Those machines need MDM or the file.

    Checkpoint 1 of 6· Fill the gap

    This managed-settings.json is meant to make managed settings the only place allow, ask and deny rules can come from, so developers cannot add their own. Which key completes it?

    {
      "permissions": {
        "deny": [
          "Read(./.env)",
          "Read(./secrets/**)"
        ],
        "disableBypassPermissionsMode": "disable"
      },
      " ? ": true
    }

    Checkpoint 2 of 6· Check yourself

    An organization sets its Claude Code policy only in the claude.ai admin console, as server-managed settings. One team runs Claude Code through another provider, with ANTHROPIC_BASE_URL pointed away from Anthropic's API. What happens to that team's policy?

    Sources12

    2.When several managed sources compete: first-wins, merge and /status

    By default, managed sources do not combine. Under first-wins, Claude Code walks down the ranking (remote, then MDM, then files, then HKCU) and uses the first source that carries a policy key. It ignores every source below that one, with no warning. A source that sets only the two control keys, wslInheritsWindowsSettings and managedSourcesBehavior, does not count as delivering policy, so Claude Code moves on to the next source.

    /status is how you find a skipped source. It names the source Claude Code used and the ones it skipped. When a deny rule you shipped by MDM seems to have vanished, /status usually shows that a server-managed policy took priority over it.

    Setting managedSourcesBehavior to merge (Claude Code v2.1.242 or later) applies every admin source that delivers a policy key. On most keys, the higher-ranked value wins. Lists union, and locks take the strictest value. Some keys are read from every admin source even under first-wins. For example, an entry in deniedMcpServers from any admin source applies. Within the file-based source, managed-settings.d/*.json and managed-settings.json always merge: a later file replaces single values, lists combine with duplicates removed, and nested blocks such as env merge key by key.

    Timing matters during a rollout. Most changes reach running sessions on the schedule in the delivery table. A server-managed change to a setting that needs approval, such as a hook or an env variable, waits until the developer accepts a dialog. A few keys, including requiredMinimumVersion, take effect only at the next session start.

    Checkpoint 3 of 6· Check yourself

    After a rollout, developers say a deny rule that IT shipped in the macOS MDM profile is not being enforced. The organization also publishes a policy in the claude.ai admin console, and managedSourcesBehavior is not set. What is the most likely cause, and how should the admin fix it?

    Sources1

    3.Locking permissions, MCP servers, plugins and hooks

    A managed deny rule cannot be overridden, but by default developers can still add their own allow rules for anything the policy does not deny. Locks close that gap. Each lock tells Claude Code to ignore a whole category of configuration from user and project sources. The most important one for permissions is allowManagedPermissionRulesOnly, which makes managed settings the only source of permission rules. With it set, nothing a developer writes in their own files can loosen the policy.

    Managed lock keys and what each one controls
    KeyWhat it locks
    allowManagedPermissionRulesOnlyMakes managed settings the only source of allow, ask and deny rules
    permissions.disableBypassPermissionsModeDisables --dangerously-skip-permissions; touches no other rule
    allowedMcpServers, deniedMcpServers, allowManagedMcpServersOnlyWhich MCP servers users can add or connect to
    managedMcpServers or a deployed managed-mcp.jsonA fixed set of MCP servers deployed to every user
    strictKnownMarketplaces, blockedMarketplaces, disableSideloadFlagsWhich plugin marketplace sources users can add and install from, and the CLI flags that sideload plugins for a single run
    strictPluginOnlyCustomizationSkills, agents, hooks and MCP servers can come only from plugins or managed settings
    allowManagedHooksOnly, allowedHttpHookUrlsWhich hooks run, and which URLs HTTP hooks may call

    These keys sound alike but do not substitute for each other. disableBypassPermissionsMode removes only the bypass mode. It leaves user allow rules untouched. allowManagedMcpServersOnly locks the MCP allowlist, not tool permissions. strictKnownMarketplaces limits where plugins come from. Pick the key that matches the risk you are closing. The same managed policy can also set which permission mode sessions start in through permissions.defaultMode, and can remove auto mode with permissions.disableAutoMode. For what each mode means for human review, see Permission modes: how much the human reviews.

    The MCP lock behaves differently under first-wins. A true for allowManagedMcpServersOnly in any admin source turns the lock on. The allowlist then comes from the highest-ranked admin source that sets one. If no admin source sets a list, every server that passes the denylist loads. Locking without shipping a list is therefore weaker than it looks.

    Checkpoint 4 of 6· Match them up

    Each managed lock closes a different gap, and none of them stands in for another. Match each key to what it locks.

    Tap a term, then the definition that fits it.

    Checkpoint 5 of 6· Exam question

    An organization's Owner wants to guarantee that only permission rules defined centrally by the security team take effect for every developer, so that even a well-intentioned engineer cannot loosen a restriction by editing their own settings. Which managed setting accomplishes this?

    Sources13

    4.Pinning provider, models and versions

    Provider comes first, because it decides how developers authenticate and how usage is billed. Claude for Teams or Enterprise is the default recommendation. Console suits API-first, pay-as-you-go teams. Bedrock, Google Cloud's Agent Platform and Foundry let a team inherit existing cloud compliance controls and billing. Once you have chosen, allowedProviders (v2.1.285 or later) refuses any session on a provider that is not on the list, checking at startup, at login and on the next API call.

    Setting model in managed settings only chooses where sessions start. A managed model is a starting default, not a lock. To restrict models, use availableModels, which filters the picker. Add enforceAvailableModels to make the auto-selected default obey the list as well. Across managed sources, availableModels never merges, so the list from the source that applies is the whole list. maxEffortLevel caps effort, and the lowest cap across admin sources wins.

    Version pins come in two strengths. minimumVersion stops auto-update from installing anything below an org-wide floor, so it only blocks downgrades. requiredMinimumVersion and requiredMaximumVersion refuse to start Claude Code outside an approved range. Even these do not end a session that is already running, so a terminal left open for weeks can lag behind a rollout.

    Spend sits alongside these pins. The general mechanics are in Rate limits and spend caps. For a Claude Code team, spend and rate limits are set in organization settings on Teams or Enterprise, as workspace limits on Console, or through cloud budget controls or a gateway with per-user limits on third-party clouds. To see usage, use OpenTelemetry export, which works on every provider, or the analytics dashboard.

    Checkpoint 6 of 6· Check yourself

    A platform lead puts a model value in managed settings so the whole team uses one model. A week later, developers are still switching to other models. What should the lead have configured?

    Sources31

    Practise it for real

    Deploy a file-based managed policy on a Linux machine and confirm that Claude Code enforces it

    1. 1.Write the managed-settings.json from this page to /etc/claude-code/managed-settings.json

      Why: This is the file-based managed source on Linux and WSL, which you can use on hosts without MDM

      You should see: The file sits at the system path, which developers do not edit

    2. 2.Start claude in any project and run /status

      Why: /status names the managed source Claude Code applied and any it skipped

      You should see: The managed settings file is listed as the source in use, unless a higher-ranked source such as server-managed settings took priority

    3. 3.Ask Claude to read ./.env in that project

      Why: The managed deny rule should block the read regardless of any rule in the user or project files

      You should see: The read is refused

    Stuck? Get a nudge

    If /status shows a different source in use, your organization also delivers a higher-ranked policy, and first-wins is ignoring the file.

    Sources

    (3)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Fetched at startup and polled hourly”
      ↩︎ Delivering managed settings to every machine
      “Read at startup and checked for changes every 30 minutes”
      ↩︎ Delivering managed settings to every machine
      “A managed settings file or MDM policy that contains only those doesn’t count, and Claude Code moves on to the next source.”
      ↩︎ When several managed sources compete: first-wins, merge and /status
      “on most keys the higher-ranked source’s value applies, lists union, and locks take the strictest value”
      ↩︎ When several managed sources compete: first-wins, merge and /status
      “Lists, such as permissions.deny or sandbox.network.allowedDomains: the two lists combine, with duplicates removed”
      ↩︎ When several managed sources compete: first-wins, merge and /status
      “a true in any admin source turns the MCP allowlist lock on”
      ↩︎ Locking permissions, MCP servers, plugins and hooks
      “requiredMinimumVersion blocks an outdated binary from starting and doesn’t end a session that’s already running.”
      ↩︎ Pinning provider, models and versions
      “/status names the source it used and the ones it skipped.”
      ↩︎ Exam trap 1
      “On other providers, or when ANTHROPIC_BASE_URL points somewhere other than Anthropic’s API, it starts at the next source”
      ↩︎ Exam trap 4
      “On other providers, or when ANTHROPIC_BASE_URL points somewhere other than Anthropic’s API, it starts at the next source”
      ↩︎ Checkpoint
      “Claude Code uses the highest-ranked source that delivers at least one policy key and ignores the rest rather than merging them”
      ↩︎ Prediction
      “"first-wins", the default: Claude Code uses the highest-ranked source that delivers at least one policy key and ignores the rest rather than merging them”
      ↩︎ Checkpoint
    2. 2.
      “Only server-managed settings reach the cloud session”
      ↩︎ Delivering managed settings to every machine
      “A managed model is a starting default, not a lock; the locks are availableModels and deniedModels.”
      ↩︎ Exam trap 2
    3. 3.
      “Block skills, agents, hooks, and MCP servers from user and project sources”
      ↩︎ Locking permissions, MCP servers, plugins and hooks
      “Restrict which hooks run and restrict HTTP hook URLs”
      ↩︎ Locking permissions, MCP servers, plugins and hooks
      “A session on a provider that isn’t listed is refused at startup, at login, and when it next contacts the API.”
      ↩︎ Pinning provider, models and versions
      “Stronger than minimumVersion, which only blocks downgrades”
      ↩︎ Pinning provider, models and versions
      “OpenTelemetry export of sessions, tools, and tokens”
      ↩︎ Pinning provider, models and versions
      “Make managed settings the only settings source of permission rules”
      ↩︎ Exam trap 3
      “Make managed settings the only settings source of permission rules. Disable --dangerously-skip-permissions”
      ↩︎ Checkpoint
      “availableModels filters which models appear in the picker. Adding enforceAvailableModels also constrains the auto-selected default model.”
      ↩︎ Checkpoint

    Ready to test yourself?

    Practise the 12 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.