spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / examples / mdm
..
macosAdd MDM deployment example templates (#45866)on Apr 9, 2026
windowsAdd MDM deployment example templates (#45866)on Apr 9, 2026
managed-settings.jsonAdd MDM deployment example templates (#45866)on Apr 9, 2026
README.mdAdd MDM deployment example templates (#45866)on Apr 9, 2026
README.mdView file

MDM Deployment Examples

Example templates for deploying Claude Code managed settings through Jamf, Iru (Kandji), Intune, or Group Policy. Use these as starting points — adjust them to fit your needs.

All templates encode the same minimal example (permissions.disableBypassPermissionsMode). See the settings reference for the full list of keys, and ../settings for more complete example configurations.

Templates

[!WARNING] These examples are community-maintained templates which may be unsupported or incorrect. You are responsible for the correctness of your own deployment configuration.

FileUse with
managed-settings.jsonAny platform. Deploy to the system config directory.
macos/com.anthropic.claudecode.plistJamf or Iru (Kandji) Custom Settings payload. Preference domain: com.anthropic.claudecode.
macos/com.anthropic.claudecode.mobileconfigFull configuration profile for local testing or MDMs that take a complete profile.
windows/Set-ClaudeCodePolicy.ps1Intune Platform scripts. Writes managed-settings.json to C:\Program Files\ClaudeCode\.
windows/ClaudeCode.admx + en-US/ClaudeCode.admlGroup Policy or Intune Import ADMX. Writes HKLM\SOFTWARE\Policies\ClaudeCode\Settings (REG_SZ, single-line JSON).

Tips

  • Replace the placeholder PayloadUUID and PayloadOrganization values in the .mobileconfig with your own (uuidgen)
  • Before deploying to your fleet, test on a single machine and confirm /status lists the source under Setting sources — e.g. Enterprise managed settings (plist) on macOS or Enterprise managed settings (HKLM) on Windows
  • Settings deployed this way sit at the top of the precedence order and cannot be overridden by users

Full Documentation

See https://code.claude.com/docs/en/settings#settings-files for complete documentation on managed settings and settings precedence.