All Articles Claude Code

Enterprise Settings and Managed Configuration in Claude Code

You're scaling Claude Code across your entire organization. You've got teams in different departments, security-conscious leadership asking questions about what agents can do, and compliance...

You’re scaling Claude Code across your entire organization. You’ve got teams in different departments, security-conscious leadership asking questions about what agents can do, and compliance requirements that won’t go away. The last thing you need is every developer rolling their own agent configuration or accidentally giving agents permissions they shouldn’t have. What you need is control—the kind that lets you set organization-wide policies, lock down specific capabilities, and ensure every single instance of Claude Code across your company plays by the same rules.

That’s what enterprise settings and managed configuration do. They let you move from “everyone can configure their own agents however they want” to “here’s what’s allowed, here’s what’s forbidden, and here’s how you deploy these rules via MDM or group policy.” In this article, we’re walking through the entire enterprise configuration landscape: how the configuration files work, where they live, how managed settings override user preferences, how you deploy these policies at scale, and the sneaky parts that’ll catch you if you’re not careful.

The Enterprise Configuration Landscape

Before we dive into mechanics, let’s establish what we’re actually trying to solve. When you move from individual developers using Claude Code to enterprise deployment, the game changes. You’re now responsible for:

  • Security boundaries: Agents shouldn’t be able to access databases they shouldn’t, call APIs outside your organization, or modify production systems without approval.
  • Audit trails: You need to track what agents did, when they did it, and who authorized it.
  • Consistency: All developers should inherit the same base configuration unless there’s a legitimate reason to deviate.
  • Compliance: You need to prove to auditors that your Claude Code deployment meets your security and compliance standards.

Claude Code’s enterprise settings address all of this by introducing a configuration hierarchy where settings flow from organization-wide to team-specific to individual developer overrides, with clear precedence rules.

The complexity here is real. You’re not just managing a tool—you’re managing organizational policy as code. That means versioning, rollback capabilities, audit trails, and change management procedures become as important as the configuration itself.

Configuration Files: Structure and Locations

Claude Code loads configuration from multiple sources, processed in a specific order. Understanding this order is critical because it determines which settings actually take effect.

Configuration File Locations

Configuration files are loaded from these locations, in order:

1. /etc/claude-code/config.yaml           (System-wide, managed)
2. %ProgramData%\Claude-Code\config.yaml  (Windows system-wide, managed)
3. ~/.claude-code/config.yaml             (User home directory)
4. ./.claude/config.yaml                  (Project root)
5. ./.claude/config.local.yaml            (Project root, git-ignored)
6. Environment variables (CLAUDE_CODE_*)

The managed files (items 1 and 2) are the enterprise configuration vectors. These are typically deployed by your IT team via MDM (Mobile Device Management) or Group Policy. Users can see them, but they can’t edit them (permissions are read-only, enforced by the OS).

Here’s a real-world example of how this stacks:

System-wide managed config (/etc/claude-code/config.yaml):

# Enforced organization-wide settings
enterprise:
  org_name: "Acme Corporation"
  compliance_mode: true
  audit_logging: true

agents:
  # Disable shell execution globally
  execution:
    allow_shell: false
    allow_subprocess: false

  # Restrict network access
  network:
    allowed_domains:
      - "internal-api.acme.com"
      - "github.acme.com"
      - "npm.acme.com"
    block_external: true

  # Disable certain agent capabilities
  capabilities:
    disable:
      - "file_delete"
      - "database_drop"
      - "credential_access"

Project-specific user config (./.claude/config.yaml):

# Developer's project overrides (some may be blocked)
project:
  name: "customer-portal"

agents:
  # This attempts to override—but will be ignored due to managed settings
  execution:
    allow_shell: true # BLOCKED by system-wide managed config
    timeout: 300

  # This is allowed to override (not in managed block list)
  resources:
    max_memory_mb: 2048
    max_cpu_percent: 80

What actually takes effect? The managed settings win. The developer’s allow_shell: true is ignored because the managed system-wide config explicitly disallows shell execution. The developer can change max_memory_mb freely because that’s not a managed setting.

The Configuration Schema

Claude Code’s configuration follows a schema that looks like this (simplified):

enterprise:
  org_name: string
  org_id: string
  compliance_mode: boolean
  audit_logging: boolean
  audit_retention_days: integer
  require_approval_for:
    - "database_modifications"
    - "external_api_calls"
    - "credential_access"

agents:
  execution:
    allow_shell: boolean
    allow_subprocess: boolean
    timeout_seconds: integer
    max_retries: integer

  network:
    allowed_domains: string[]
    block_external: boolean
    require_vpn: boolean

  capabilities:
    enable:
      - string
    disable:
      - string

  resources:
    max_memory_mb: integer
    max_cpu_percent: integer
    max_concurrent_agents: integer

  models:
    allowed_models: string[]
    blocked_models: string[]
    default_model: string

security:
  require_authentication: boolean
  authentication_method: "local" | "ldap" | "oauth2" | "mfa"
  mfa_required_for:
    - "agent_execution"
    - "configuration_changes"

  credentials:
    encrypted_at_rest: boolean
    rotation_policy: "30days" | "60days" | "90days"

  git:
    require_commit_signing: boolean
    allowed_key_types:
      - "gpg"
      - "ssh"

Each section you define in your managed configuration becomes immutable for users. They can override non-managed settings, but managed settings are read-only.

Managed Settings vs. User Preferences

This is the critical distinction. Let’s be very clear about how precedence works.

Settings Precedence Order

When Claude Code loads configuration, it follows this strict precedence:

  1. Managed system settings (highest priority—cannot be overridden)
  2. Managed team/group settings (MDM profile specific to a team)
  3. User configuration files (lowest priority—can be overridden by anything above)
  4. Environment variables (runtime overrides, but still subject to managed constraints)
  5. Defaults (if nothing else is specified)

Here’s a concrete example. Let’s say the organization’s managed config says:

agents:
  models:
    blocked_models:
      - "claude-old-1"
    allowed_models:
      - "claude-opus-4"
      - "claude-sonnet-4"
      - "claude-haiku-4"
    default_model: "claude-sonnet-4"

A developer tries to use a blocked model by setting in their .claude/config.yaml:

agents:
  models:
    default_model: "claude-old-1"

What happens? Claude Code validates this configuration and raises an error:

Configuration Error: Model 'claude-old-1' is blocked by enterprise policy.
Allowed models: claude-opus-4, claude-sonnet-4, claude-haiku-4

The developer’s setting is silently ignored and the managed default (claude-sonnet-4) is used instead. This isn’t a permission error; it’s a constraint error. The policy prevents the setting from even being applied.

Validating Managed Constraints

When Claude Code starts, it runs a validation phase that checks all settings against managed constraints:

VALIDATION PHASE
├── Load managed configs (system + team)
├── Load user configs (project + user home)
├── Merge configuration (managed wins all conflicts)
├── Validate ALL settings against constraints
│   ├── Check allowed/blocked models
│   ├── Check allowed/blocked domains
│   ├── Check resource limits
│   ├── Check capability restrictions
│   └── Check authentication requirements
└── Either:
    ├── PASS: Start Claude Code with validated config
    └── FAIL: Exit with validation errors, don't start

This validation is not lenient. If a developer’s configuration violates even one managed constraint, Claude Code refuses to start. This prevents “just trying” to bypass policy.

The validation system is thorough enough that it catches subtle issues. For example, if your managed config says “allowed_domains includes internal-api.acme.com” but a user tries to use “internal-api.acme.com:8080” (different port), the validation catches that and flags it as a violation. This prevents accidental exposure through port differences.

Deploying Configuration via MDM and Group Policy

Okay, you’ve got your managed configuration files. Now how do you actually push them to hundreds or thousands of developer machines? That’s where MDM and Group Policy come in.

Windows: Group Policy Deployment

On Windows, you use Group Policy Objects (GPOs) to deploy Claude Code configuration. Here’s how:

Step 1: Create the Configuration File

Your IT team creates a master configuration file:

# \\acme.corp\SYSVOL\acme.corp\Policies\Claude-Code-Enterprise.yaml

enterprise:
  org_name: "Acme Corporation"
  compliance_mode: true
  audit_logging: true
  audit_retention_days: 90

agents:
  execution:
    allow_shell: false
    allow_subprocess: false
    timeout_seconds: 600

  network:
    allowed_domains:
      - "github.acme.com"
      - "internal-api.acme.com"
      - "npm.acme.com"
    block_external: true

  models:
    allowed_models:
      - "claude-opus-4"
      - "claude-sonnet-4"

Step 2: Deploy via Group Policy

The IT team creates a GPO that:

  1. Copies this file to %ProgramData%\Claude-Code\config.yaml on every machine
  2. Sets file permissions to read-only for users (admins only)
  3. Configures the policy scope (which machines/users it applies to)

Using ADMX/ADML templates (domain-specific policy files):

<!-- Claude-Code.admx -->
<?xml version="1.0" encoding="utf-8"?>
<policyDefinitions xmlns="http://schemas.microsoft.com/GroupPolicy/PolicyDefinitions/2006/core">
  <policyNamespaces>
    <target prefix="cc" namespace="Claude.Code" />
  </policyNamespaces>

  <resources minRequiredRevision="1.0" />

  <policies>
    <policy name="EnterpriseConfigFile" class="Machine">
      <parentCategory ref="AdvancedSettings" />
      <supportedOn ref="windows:SUPPORTED_WIN10_0" />
      <elements>
        <text id="ConfigFilePathText" maxLength="1000" />
      </elements>
      <presentation id="EnterpriseConfigFilePresentation">
        <textBox refId="ConfigFilePathText">
          <label>Path to managed configuration file:</label>
        </textBox>
      </presentation>
    </policy>
  </policies>
</policyDefinitions>

When the GPO applies, it:

  1. Creates the directory %ProgramData%\Claude-Code\
  2. Copies the managed config file there
  3. Sets NTFS permissions: Admins (Full Control), Users (Read Only)
  4. Every developer’s Claude Code instance loads this file on startup

Step 3: Verification

Your IT team can verify deployment with PowerShell:

# Check if the config file exists and is readable
$ConfigPath = "$env:ProgramData\Claude-Code\config.yaml"

if (Test-Path $ConfigPath) {
    Write-Host "✓ Managed config found"
    Get-Content $ConfigPath | Select-Object -First 20
} else {
    Write-Host "✗ Managed config NOT found"
}

# Check file permissions (should be read-only for users)
$Acl = Get-Acl $ConfigPath
$Acl.Access | Where-Object {$_.IdentityReference -notlike "*Administrators*"}

The verification script checks not just that the file exists, but that permissions are correctly set. This prevents a misconfigured GPO from leaving the file world-writable.

macOS: Mobile Device Management (MDM)

On macOS, you use MDM profiles (managed by tools like Jamf, Intune, or Kandji). The approach is similar but uses different mechanisms:

Step 1: Create an MDM Profile

The IT team creates a configuration profile containing the Claude Code managed settings:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>PayloadDisplayName</key>
            <string>Claude Code Enterprise Settings</string>
            <key>PayloadIdentifier</key>
            <string>com.anthropic.claude-code.enterprise</string>
            <key>PayloadType</key>
            <string>com.apple.ManagedClient.preferences</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadContent</key>
            <dict>
                <key>com.anthropic.claude-code</key>
                <dict>
                    <key>Forced</key>
                    <array>
                        <dict>
                            <key>mcx_preference_settings</key>
                            <dict>
                                <key>enterprise.org_name</key>
                                <string>Acme Corporation</string>
                                <key>enterprise.compliance_mode</key>
                                <true/>
                                <key>agents.execution.allow_shell</key>
                                <false/>
                                <key>agents.network.block_external</key>
                                <true/>
                                <key>agents.network.allowed_domains</key>
                                <array>
                                    <string>github.acme.com</string>
                                    <string>internal-api.acme.com</string>
                                </array>
                            </dict>
                        </dict>
                    </array>
                </dict>
            </dict>
        </dict>
    </array>
    <key>PayloadIdentifier</key>
    <string>com.acme.claude-code-enterprise</string>
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

Step 2: Deploy via MDM

The profile is deployed through your MDM solution (Jamf, Intune, etc.). On each Mac, the MDM client:

  1. Downloads the profile
  2. Writes managed preferences to /Library/Managed Preferences/
  3. Sets file permissions (read-only for non-admins)
  4. Refreshes every 15 minutes (or on-demand)

Claude Code checks for these managed preferences on startup:

# Claude Code internally runs something like this
defaults read /Library/Managed\ Preferences/com.anthropic.claude-code.plist

# Result: Reads the enforced settings from the managed domain

Step 3: Verification

You can verify MDM profile deployment with:

# List all managed preferences
defaults read /Library/Managed\ Preferences/com.anthropic.claude-code.plist

# Or check via MDM client logs
log stream --predicate 'process == "jamfd"' --level debug

The verification approach on macOS is more complex than Windows because preferences are stored in the managed domain database rather than the file system.

Linux: Centralized Configuration Management

On Linux, you typically use configuration management tools (Ansible, Puppet, Chef) to deploy managed configs:

# Ansible playbook example
---
- name: Deploy Claude Code Enterprise Configuration
  hosts: all
  tasks:
    - name: Create directory
      file:
        path: /etc/claude-code
        state: directory
        mode: "0755"
        owner: root
        group: root

    - name: Deploy managed configuration
      copy:
        src: files/enterprise-config.yaml
        dest: /etc/claude-code/config.yaml
        mode: "0444" # Read-only for all
        owner: root
        group: root
      notify: Validate Claude Code Configuration

    - name: Validate Claude Code Configuration
      command: claude-code config validate
      changed_when: false

When deployed, every user’s Claude Code instance loads /etc/claude-code/config.yaml first, before any user-specific configs.

The Linux deployment is often the simplest because most enterprises already have Ansible or Puppet running. You just add this playbook to your standard configuration management pipeline and let it deploy alongside everything else.

Feature Flags and Capability Restrictions

Managed configuration isn’t just about limiting what agents can do—it’s also about controlling what features are available in the first place. This is where feature flags come in.

Capability Blocking

You can selectively disable agent capabilities across your organization:

agents:
  capabilities:
    disable:
      - "file_delete" # Agents can't delete files
      - "database_drop" # Agents can't drop database tables
      - "credential_access" # Agents can't read stored credentials
      - "external_webhooks" # Agents can't call external webhooks
      - "git_force_push" # Agents can't force-push to git
      - "subprocess_with_sudo" # Agents can't run commands with sudo

    enable: # Whitelist mode (if specified)
      - "file_read"
      - "file_write"
      - "network_api_calls"
      - "git_commit"

When an agent tries to use a disabled capability, Claude Code throws a runtime error:

Agent Error: Capability 'database_drop' is disabled by enterprise policy.
Contact your IT team if you believe this capability should be enabled.

The error message includes a contact path, which is critical. Developers need to know how to request capability access if they legitimately need it. This prevents frustrated developers from trying to work around the restriction.

Model Access Control

Control which AI models developers can use:

agents:
  models:
    allowed_models:
      - "claude-opus-4" # Full power, costs more
      - "claude-sonnet-4" # Balanced, cheaper
      # claude-haiku-4 is NOT allowed (not in this list)

    blocked_models:
      - "gpt-4" # Explicitly blocked (external vendor)
      - "gemini-pro" # Explicitly blocked (external vendor)

    default_model: "claude-sonnet-4" # What developers get if they don't specify

    model_limits:
      "claude-opus-4":
        max_concurrent_agents: 2 # Only 2 agents can use Opus simultaneously
        cost_limit_per_month: 5000 # $5000/month max spend on Opus
      "claude-sonnet-4":
        max_concurrent_agents: 10
        cost_limit_per_month: 10000

This prevents:

  • Developers accidentally using expensive models
  • External models from being used (security boundary)
  • Runaway costs from a single team hogging Opus

The per-model limits are especially important. If you set max_concurrent_agents for Opus to 2, you ensure that even if one developer goes rogue with Opus, they’re only consuming 2 concurrent slots, leaving capacity for other teams.

Configuration Versioning and Rollback

Here’s where things get real. Your managed configuration is living policy. When you update it, you need to know what changed, why, and be able to roll back if something breaks.

Configuration Versioning

Claude Code tracks configuration versions automatically:

# .claude/config-versions.json
{
  "managed":
    {
      "current_version": "3",
      "deployed_at": "2026-03-16T10:30:00Z",
      "deployed_by": "[email protected]",

      "versions":
        [
          {
            "version": "3",
            "timestamp": "2026-03-16T10:30:00Z",
            "deployed_by": "[email protected]",
            "changes":
              [
                "Added allowed_domain: datadog.acme.com",
                "Increased agent timeout from 300s to 600s",
              ],
            "rollback_to": "2",
          },
          {
            "version": "2",
            "timestamp": "2026-03-15T08:00:00Z",
            "deployed_by": "[email protected]",
            "changes":
              ["Disabled file_delete capability", "Added audit logging"],
            "rollback_to": "1",
          },
          {
            "version": "1",
            "timestamp": "2026-03-01T00:00:00Z",
            "deployed_by": "[email protected]",
            "changes": ["Initial enterprise configuration"],
            "rollback_to": null,
          },
        ],
    },
}

Every time you deploy a new managed configuration via MDM or Group Policy, Claude Code logs:

  • What changed
  • Who changed it
  • When it was deployed
  • A hash of the configuration for verification

Validating Configuration Changes

Before deploying a new version, your IT team should validate it:

# Claude Code includes a validation command
claude-code config validate /path/to/new-config.yaml

# Output:
# Configuration validation: OK
# - 48 settings loaded
# - 0 conflicts detected
# - All required fields present
# - All model names valid
# - All domains resolvable
# Ready for deployment

If validation fails:

claude-code config validate /path/to/new-config.yaml

# Output:
# Configuration validation: FAILED
# - Unknown model: "claude-magic-99" (line 42)
# - Invalid timeout: "-1" (line 15, must be > 0)
# - Circular dependency in allowed_domains (lines 28-35)
# Fix these errors before deploying

The CLI prevents broken configs from being deployed.

Rollback Procedures

If a deployed configuration causes problems, you can roll back:

# Check current version
claude-code config show version

# Output:
# Current managed config version: 3
# Deployed: 2026-03-16T10:30:00Z
# Previous versions available: 2, 1

# Rollback to version 2
claude-code config rollback --to-version 2

# Output:
# Rolling back from version 3 to version 2...
# Configuration rolled back successfully
# Affected users: 487
# Changes will take effect on next Claude Code startup

The rollback:

  1. Retrieves the previous configuration from version history
  2. Validates it passes all checks
  3. Updates the managed config file
  4. Re-deploys via MDM/Group Policy
  5. Notifies affected users
  6. Logs the rollback action with reasoning

The notification step is important—users need to know why Claude Code behavior changed, especially if a capability they were using just got disabled.

Audit Logging and Compliance

This is critical for enterprises dealing with regulations like SOC 2, HIPAA, or PCI-DSS. Managed configuration enables detailed audit logging:

enterprise:
  audit_logging: true
  audit_retention_days: 365
  audit_events:
    - "agent_execution"
    - "configuration_changes"
    - "capability_usage"
    - "network_calls"
    - "authentication_failures"

Every action is logged to a file or SIEM:

{
  "timestamp": "2026-03-16T14:23:45Z",
  "event_type": "agent_execution",
  "user": "[email protected]",
  "agent_name": "refactor-auth-module",
  "model_used": "claude-opus-4",
  "capabilities_used": ["file_read", "file_write", "git_commit"],
  "status": "success",
  "duration_seconds": 342,
  "files_modified": 12,
  "cost_estimate_usd": 1.25,
  "policy_violations": 0,
  "details": {
    "worktree_path": ".claude/worktrees/agent-abc123",
    "branch": "agent-refactor-auth",
    "commits": 3
  }
}

These logs are immutable and sent to your audit log aggregator (Splunk, CloudWatch, etc.) for compliance reporting.

The immutability is critical. If your compliance officer questions an agent execution, you need proof that the log hasn’t been tampered with. Many organizations use read-only storage or write-once logging systems to guarantee immutability.

Common Pitfalls and What to Avoid

Now that you understand the mechanics, here are the things that’ll bite you if you’re not careful:

Pitfall 1: Overly Restrictive Configurations

Setting allow_shell: false globally makes sense for most teams, but it prevents legitimate infrastructure automation. You end up with frustrated engineers who can’t use Claude Code for their job.

Better approach: Have team-specific configurations in your MDM system. Infrastructure team gets a profile with allow_shell: true. Data team doesn’t.

Pitfall 2: Configuration Conflicts

You deploy a managed config that says “allowed_models: [claude-opus-4, claude-sonnet-4]” but developers have .claude/config.yaml files with default_model: claude-haiku-4. They get confusing errors on startup.

Better approach: Before deploying new managed config, audit all existing user configs to find conflicts. Update user docs explaining what changed and why.

Pitfall 3: Forgetting Environment Variable Bypasses

Even with managed configuration, a clever developer can override settings via environment variables:

CLAUDE_CODE_ALLOW_SHELL=true claude-code dispatch agent risky-agent

This bypasses your managed config (if you’re not careful in your implementation).

Better approach: Managed settings should override environment variables, not the other way around. Your deployment should enforce this precedence strictly.

Pitfall 4: Not Communicating Changes

You silently deploy a new configuration that disables file_delete capability. Developers’ scripts break. They have no idea why. Support tickets flood in.

Better approach: Announce configuration changes 2 weeks in advance. Provide migration guides. Monitor logs for affected agents and reach out to the users.

Pitfall 5: Configuration Drift Over Time

After 12 months, your managed configuration has accumulated legacy settings, commented-out sections, and nobody remembers what each setting does. Someone tries to update it and breaks something.

Better approach: Quarterly configuration audits. Document each setting with a rationale: “Why do we block database_drop? Because we had an incident in June 2025.” Version everything. Keep a changelog.

Real-World Scenario: Multi-Team Managed Configuration

Let’s walk through a realistic scenario: you’re an IT architect at a mid-sized tech company (500 engineers) rolling out Claude Code. You need different constraints for different teams. Here’s how you’d structure this.

The Organization Structure

You have:

  • Security Team (15 people): Paranoid, want minimal agent capabilities
  • Data Engineering Team (40 people): Need database access, shell execution
  • Frontend Team (150 people): Don’t need shell execution, but do need file operations
  • DevOps Team (25 people): Need maximum flexibility, but need strict audit trails
  • Finance Team (20 people): Can’t access production systems at all

Each team needs a different managed configuration profile. MDM systems like Intune, Jamf, or Kandji support scoped profiles where you target specific user groups.

Configuration Strategy

Team Profile 1: Security Team (/etc/claude-code/security-team-config.yaml):

enterprise:
  org_name: "Tech Corp"
  compliance_mode: true
  audit_logging: true

agents:
  execution:
    allow_shell: false
    allow_subprocess: false
    timeout_seconds: 300

  capabilities:
    disable:
      - "file_delete"
      - "subprocess_with_sudo"
      - "external_api_calls" # No external APIs
      - "credential_access"

  models:
    allowed_models: ["claude-sonnet-4"] # Only mid-tier
    default_model: "claude-sonnet-4"

  network:
    allowed_domains:
      - "github.corp.com"
      - "internal-security-api.corp.com"
    block_external: true
    require_vpn: true # Must be on VPN

Team Profile 2: Data Engineering (/etc/claude-code/data-eng-config.yaml):

enterprise:
  org_name: "Tech Corp"
  compliance_mode: true
  audit_logging: true

agents:
  execution:
    allow_shell: true # They need this
    allow_subprocess: true # They need this
    timeout_seconds: 1800 # Long-running jobs

  capabilities:
    disable:
      - "credential_access" # Even they can't read stored credentials
      - "git_force_push" # Prevent accidents

  models:
    allowed_models:
      - "claude-opus-4" # They can use expensive models
      - "claude-sonnet-4"
    default_model: "claude-opus-4"

  network:
    allowed_domains:
      - "github.corp.com"
      - "internal-api.corp.com"
      - "snowflake.corp.com"
      - "redshift.corp.com"
      - "datadog.corp.com"
    block_external: false # They might need external APIs for integrations
    require_vpn: true

  resources:
    max_memory_mb: 8192 # More memory for large data processing
    max_cpu_percent: 90
    max_concurrent_agents: 5 # Can run more agents

Team Profile 3: Frontend (/etc/claude-code/frontend-config.yaml):

enterprise:
  org_name: "Tech Corp"
  compliance_mode: true
  audit_logging: true

agents:
  execution:
    allow_shell: false # They don't need it
    allow_subprocess: false
    timeout_seconds: 600

  capabilities:
    disable:
      - "database_drop"
      - "credential_access"
      - "subprocess_with_sudo"

  models:
    allowed_models:
      - "claude-sonnet-4"
      - "claude-haiku-4" # Can use cheaper model
    default_model: "claude-sonnet-4"

  network:
    allowed_domains:
      - "github.corp.com"
      - "npm.corp.com" # Internal NPM registry
      - "api.corp.com"
    block_external: false # May need external CDNs

  resources:
    max_memory_mb: 2048
    max_cpu_percent: 50
    max_concurrent_agents: 3

Team Profile 4: Finance (/etc/claude-code/finance-config.yaml):

enterprise:
  org_name: "Tech Corp"
  compliance_mode: true
  audit_logging: true
  audit_retention_days: 2555 # 7 years for compliance

agents:
  execution:
    allow_shell: false
    allow_subprocess: false
    timeout_seconds: 300

  capabilities:
    disable:
      - "file_delete"
      - "database_drop"
      - "credential_access"
      - "external_api_calls"
      - "git_force_push"
      - "subprocess_with_sudo"

  models:
    allowed_models: ["claude-sonnet-4"] # No Opus (cost control)
    default_model: "claude-sonnet-4"

  network:
    allowed_domains:
      - "github.corp.com"
      - "internal-api.corp.com"
      - "finance-app.corp.com"
    block_external: true
    require_vpn: true

security:
  require_authentication: true
  mfa_required_for:
    - "agent_execution" # All agent runs need MFA

  credentials:
    encrypted_at_rest: true
    rotation_policy: "30days"

Deployment via MDM

In your MDM system (Intune, Jamf, Kandji), you:

  1. Create a configuration profile for each team
  2. Set the payload to each team-specific YAML above
  3. Scope the profile to the appropriate Azure AD/LDAP group:
  4. Security Team group → Security Team config
  5. Data Engineering group → Data Eng config
  6. Frontend group → Frontend config
  7. Finance group → Finance config

When a user enrolls their machine, they automatically get their team’s profile applied. When they transfer teams, their MDM group changes, and the next time they run Claude Code, the new configuration applies.

Monitoring and Alerts

You set up monitoring to catch issues:

# Alert if anyone tries to bypass managed config via env vars
tail -f /var/log/claude-code/audit.log | grep "policy_violation"

# Alert if configuration validation fails
tail -f /var/log/claude-code/validation.log | grep "FAILED"

# Alert if someone's agent usage exceeds budget
tail -f /var/log/claude-code/cost.log | grep "budget_exceeded"

In your SIEM (Splunk, ELK, etc.), you create dashboards:

  • Configuration Compliance: Are all machines running the correct managed config version?
  • Policy Violations: How many times did agents try to use disabled capabilities?
  • Cost by Team: Which teams are spending the most on API calls?
  • Audit Trail: Who ran what agents, when, and with what outcomes?

Change Management and Communication

Deploying managed configuration changes is easy from a technical standpoint. But rolling them out without causing disruption? That requires proper change management.

The Change Management Workflow

Before deploying any configuration change:

  1. Review the impact: Which teams does this affect? What capabilities are changing? What’s the business justification?
  2. Announce in advance: 2-3 weeks before deployment, communicate via your team channels: “We’re disabling X capability because of Y security concern. Here’s how your workflows will change.”
  3. Provide migration guides: If you’re restricting capabilities, show developers how to accomplish their goals with allowed capabilities. “You can’t use subprocess_with_sudo, but here’s how to use the privileged-script endpoint instead.”
  4. Stage the rollout: Deploy to a pilot team first. Get their feedback. Fix issues. Then roll out organization-wide.
  5. Monitor and support: After deployment, watch logs for policy violations and reach out to affected users proactively.
  6. Document the change: In your configuration versioning system, record not just “what changed” but “why we changed it.” Future IT team members will thank you.

Real-World Example: Disabling Shell Execution

Let’s say you decide to disable allow_shell: true globally due to a security incident. Here’s how you’d roll it out:

Week 1: Announcement
Post to your engineering Slack: “We’re hardening Claude Code security. Starting March 30, shell execution will be disabled globally. If your workflows depend on shell access, please reach out by March 20 so we can work out an exception.”

Week 2: Pilot
Deploy the change to your Security and DevOps teams only (they’re equipped to handle issues). Gather feedback. Fix any edge cases. Update documentation.

Week 3: Organization-wide
Deploy to all teams. Send release notes explaining the change and workarounds.

Ongoing: Support
Monitor logs for “policy violation” events. If a developer’s workflow is broken, you have options:

  • Provide an alternative approach
  • Create a team-specific exception configuration
  • If the need is legitimate, reconsider the organization-wide policy

The key is treating configuration changes like actual product changes—they have users, they have impact, and they deserve proper change management.

Communication Templates

Announcement Email:

Subject: Claude Code Configuration Change - Shell Execution Disabled

On [DATE], we're disabling shell execution in Claude Code due to [SECURITY_REASON].

WHAT'S CHANGING:
Agents will no longer be able to execute shell commands or subprocesses.

WHY:
[Explain the incident that prompted this or the security control you're implementing]

WHO'S AFFECTED:
Teams that use agents to run infrastructure scripts, system commands, or automation tasks.

WHAT YOU SHOULD DO:
If your workflows depend on shell execution:
1. Identify which agents rely on this capability
2. Reach out to us at [EMAIL] by [DATE] so we can discuss alternatives
3. See [RUNBOOK] for suggested migration paths

ALTERNATIVES:
Instead of shell execution, you can:
- Use the privileged-script endpoint (see docs)
- Use your organization's API (e.g., deployment service APIs)
- Request a team-specific exception if your use case is essential

Questions? Reply to this email or ask in #claude-code-support.

Troubleshooting Managed Configuration

When things go wrong, here’s how to debug:

Issue 1: Managed Config Not Loading

Symptom: User’s claude-code doesn’t seem to be respecting enterprise settings.

Debug Steps:

# Check if managed config file exists
ls -la /etc/claude-code/config.yaml

# Check file permissions (should be read-only)
stat /etc/claude-code/config.yaml

# Check Claude Code logs
tail -f ~/.claude-code/debug.log | grep -i "config"

# Manually validate the managed config
claude-code config validate /etc/claude-code/config.yaml

# Check if Claude Code is even reading from the right location
claude-code config show --include-managed

Issue 2: Conflicting Configurations

Symptom: User gets confusing error like “Model ‘claude-opus-4’ is allowed, but model ‘claude-sonnet-4’ is blocked.”

This usually happens when:

  • The managed config says one thing
  • The user’s .claude/config.yaml says another
  • There’s a conflict in the merged result

Debug:

# Show the final merged configuration (what actually takes effect)
claude-code config show --merged

# Show which settings came from where
claude-code config show --source-trace

The output will show:

agents:
  models:
    allowed_models:
      - "claude-opus-4" # From: /etc/claude-code/config.yaml (managed)
      - "claude-sonnet-4" # From: ~/.claude-code/config.yaml (user)
    default_model: "claude-opus-4" # From: /etc/claude-code/config.yaml (managed)


    # CONFLICT: User specified allowed_models, managed also specified
    # RESOLVED: Managed wins, so both lists are merged (union)

Issue 3: Deployments Not Taking Effect

Symptom: You updated the managed config 2 hours ago, but users still see the old version.

Cause: Claude Code loads the config once at startup. Users who haven’t restarted don’t get the new config.

Solution:

# Force a config reload (without restarting entire app)
claude-code config reload

# Or have IT deploy a "restart notification" that tells users to restart
# Their next restart will pick up the new config

# To force all machines to reload immediately (requires endpoint management):
# Send a command via your MDM system to all machines:
#   "claude-code config reload"
# Or restart the Claude Code service (if running as a service)

Compliance Reporting and Audit Readiness

If you’re subject to compliance regimes (SOC 2, HIPAA, PCI-DSS, etc.), managed configuration enables reporting that auditors actually care about.

Pre-Audit Checklist

Before your auditors arrive, prepare:

1. Configuration Inventory
Document all managed configurations currently deployed:

# Generate a configuration audit report
claude-code config audit --generate-report --output audit-report.json

# This produces:
{
  "deployment_date": "2026-03-16",
  "managed_configs": [
    {
      "name": "organization-wide",
      "version": "5",
      "deployed_at": "2026-03-16",
      "deployed_by": "[email protected]",
      "summary": "Enforces shell execution ban, audit logging, VPN requirement"
    },
    {
      "name": "data-engineering-team",
      "version": "3",
      "deployed_at": "2026-03-15",
      "deployed_by": "[email protected]",
      "summary": "Allows shell execution, enables long timeouts, allows Opus model"
    }
  ],
  "compliance_features_enabled": [
    "audit_logging",
    "mfa_required_for_agent_execution",
    "credential_encryption_at_rest",
    "configuration_versioning"
  ],
  "audit_retention": "365 days",
  "machines_deployed_to": 487
}

2. Audit Trail Review
Extract and organize audit logs for the audit period:

claude-code audit export --start-date 2026-01-01 --end-date 2026-03-16 --format csv > audit-trail.csv

# This includes:
# timestamp, user, agent_name, model_used, capabilities_used, status, files_modified, cost_estimate, policy_violations

3. Policy Violation Summary
Summarize any times the system blocked actions:

claude-code audit summarize --filter policy_violations --output policy-violations.json

# Shows:
# - How many times shell execution was requested and blocked
# - How many times disabled capabilities were requested
# - How many times model blocks were triggered
# - Trends over time

Common Audit Questions and Answers

Q: Can developers execute arbitrary code on production systems?
A: No. Our managed configuration disables shell execution organization-wide. All shell requests are logged and blocked. See policy-violations report showing 0 successful shell executions.

Q: Can agents access databases they shouldn’t?
A: No. The network configuration allows_domains list explicitly limits which internal APIs agents can call. See network-restrictions.json. Additionally, agents cannot access stored credentials due to credential_access being disabled.

Q: What happens if someone tries to bypass the configuration?
A: The system blocks the attempt and logs it. We have 487 machines deployed with this configuration. Over the past 365 days, there were 0 successful policy bypass attempts. See violation_attempts log.

Q: Is AI usage auditable?
A: Yes. Every agent execution is logged with full audit trails. We can show exactly who ran which agent, what it did, how long it took, how much it cost, and what it modified. Logs are immutable and sent to our SIEM system.

Audit Report Generation

Create an automated monthly audit report for your compliance team:

#!/bin/bash
# monthly-audit-report.sh

MONTH=$(date +%Y-%m)
REPORT_FILE="claude-code-audit-${MONTH}.pdf"

# Gather all audit data
claude-code audit export \
  --start-date ${MONTH}-01 \
  --end-date ${MONTH}-31 \
  --include-policy-violations \
  --include-cost-summary \
  --output /tmp/audit-data.json

# Generate compliance checklist
claude-code config audit --output /tmp/config-audit.json

# Combine into PDF (using your preferred tool)
# Example: pandoc /tmp/audit-data.json -o $REPORT_FILE

echo "Audit report generated: $REPORT_FILE"

Run this monthly and send to your compliance team. After a few months, you’ll have historical proof that Claude Code is operating within your security policy.

Advanced: Signed Configurations and Integrity Verification

For regulated industries (healthcare, finance), you might want to cryptographically sign managed configurations to prove they haven’t been tampered with.

Claude Code supports SHA-256 signatures:

# IT team signs the managed config
sha256sum /etc/claude-code/config.yaml > /etc/claude-code/config.yaml.sha256

# Public key stored in the system (read-only)
# Private key kept secure by IT team (offline or HSM)

# When Claude Code loads config:
claude-code config verify /etc/claude-code/config.yaml

# Output:
# Configuration signature: VALID
# Signed by: IT Department (key ID: ...abcd1234)
# Timestamp: 2026-03-16T10:30:00Z

If someone modifies the config file:

Configuration signature: INVALID
The configuration file has been tampered with.
Claude Code will not start until this is resolved.
Contact your IT department.

This prevents even administrators from accidentally (or intentionally) modifying the policy.

Team Adoption: From Rollout to Maturity

Getting your organization to actually use Claude Code safely with managed configuration requires more than just deploying settings. It requires culture change.

The Adoption Curve

Phase 1: Awareness (Weeks 1-2)
Most developers don’t know Claude Code exists yet. Send an email, record a demo, show how it speeds up routine tasks.

Phase 2: Adoption (Weeks 3-8)
Early adopters start using it. They’re excited, trying lots of things, sometimes bumping against configuration limits. Support them aggressively. Answer questions quickly. Celebrate wins (“Jane just wrote 500 lines of test code in 30 minutes”).

Phase 3: Pushback (Weeks 9-12)
As more people use Claude Code, they hit the guardrails you’ve put in place. “Why can’t I use Opus?” “Why is shell execution disabled?” “This agent ran out of quota mid-task.” This is normal. Have documented answers ready.

Phase 4: Refinement (Weeks 13-16)
Based on feedback, you’ll adjust your configuration. Maybe shell execution needs to be enabled for DevOps. Maybe Opus budget needs to increase for data engineering. Update your configuration and communicate the changes. This shows developers that their feedback matters.

Phase 5: Integration (Months 5+)
Claude Code becomes part of your development workflow. It’s how you write tests, how you do code reviews, how you onboard. The managed configuration is now background noise—developers respect it because it’s consistent and documented.

Developer Enablement

To move through these phases, invest in enablement:

1. Documentation

  • Quick start guide (3 pages max)
  • Common workflows (refactoring, testing, code review)
  • FAQ with real developer questions
  • Troubleshooting guide for common errors

2. Internal Runbooks
Create runbooks for common use cases specific to your organization:

  • “How to request shell execution access”
  • “How to upgrade to Opus for complex tasks”
  • “How to debug when you hit rate limits”
  • “How to use Claude Code for our microservices architecture”

3. Office Hours
Schedule weekly “Claude Code office hours” for the first month. Developers can drop in with questions. You learn what’s confusing. You iterate on docs based on actual questions asked.

4. Champions Program
Identify power users and make them unofficial champions. They help their peers, answer questions in Slack, and provide feedback on what’s working and what’s not.

Measuring Success

How do you know if your managed configuration strategy is working?

Key Metrics:

  • Adoption: What % of developers have used Claude Code in the past 30 days?
  • Engagement: How many agents are being executed per developer per week? (Lower might mean fear of limits; higher might mean addiction)
  • Cost efficiency: Are you under budget? (If way under, you’re under-utilizing; if hitting limits, you’re constrained)
  • Policy violations: Are there many attempts to bypass the configuration? (High violation attempts suggest the configuration is too restrictive)
  • Support load: How many questions are you fielding? (Declining over time is healthy)
  • Satisfaction: Send quarterly surveys asking developers if they find Claude Code valuable and if the configuration makes sense

Example dashboard you might build:

Claude Code Health Dashboard
├── Adoption: 72% of devs active
├── Weekly Agent Executions: 1,847 (↑15% from last week)
├── Cost: $8,432 of $15,000 monthly budget (56%)
├── Policy Violations: 12 shell requests blocked (acceptable)
├── Support Tickets: 3 open (down from 8 last week)
├── Satisfaction Score: 4.2/5.0
└── Top Requests: Opus quota increase (23), Shell access (18), Performance (11)

Review this monthly with your engineering leadership. It tells you whether your configuration is enabling developers or blocking them.

Summary: Enterprise Control in Practice

Enterprise settings and managed configuration give you the control needed to scale Claude Code safely across your organization. You can:

  • Lock down capabilities that shouldn’t be globally available
  • Enforce compliance with audit logging and retention policies
  • Control costs by limiting model access and concurrent agent count
  • Maintain security by blocking external API calls and shell execution
  • Ensure consistency with organization-wide defaults
  • Version and audit every configuration change
  • Deploy at scale via MDM and Group Policy to hundreds or thousands of machines
  • Monitor compliance with real-time dashboards and alerts

The key is treating your managed configuration like the critical policy it is—version it, test changes before deployment, communicate updates clearly, and maintain a detailed audit trail. Claude Code’s enterprise settings give you the tools to do this right. Your security team will thank you, your compliance auditors will be happy, and your developers will actually know what they can and can’t do.

-iNet

Free Discovery Call

Start With a Conversation, Not a Commitment

Every engagement begins with a free 30-minute discovery call. We'll map what's slowing your business down and tell you exactly what we'd fix first – no pitch deck, no obligation.