{"version":"2.0.54","anchor":"enterprise-hook-control-allowmanagedhooksonly-policy-setting","canonical_anchor":"enterprise-hook-control-allowmanagedhooksonly-policy-setting","heading":"Enterprise Hook Control: allowManagedHooksOnly Policy Setting","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.54\/e\/enterprise-hook-control-allowmanagedhooksonly-policy-setting","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.54","markdown":"### Enterprise Hook Control: `allowManagedHooksOnly` Policy Setting\n\n**What:** New policy setting that restricts hook execution to only those defined in managed enterprise settings, blocking user, project, local, and plugin hooks.\n\n**How to use:** Configure in your managed policy settings:\n\n`{ \"policySettings\": { \"allowManagedHooksOnly\": true, \"hooks\": { \"PreToolUse\": [...] } } }` **Details:**\n\n- When enabled, only hooks from `policySettings.hooks` will execute\n- Plugin hooks are explicitly skipped with log message \"Skipping plugin hooks - allowManagedHooksOnly is enabled\"\n- Complements existing `disableAllHooks` setting by providing a middle ground\n- **Evidence**: `eQ1()` at line 337237, `VA0()` at line 337232, policy schema at line 503153"}