{"version":"2.1.333","anchor":"org-hook-restrictions-persist-when-managed-settings-are-empt","canonical_anchor":"org-hook-restrictions-persist-when-managed-settings-are-empt","heading":"Organization hook restrictions stay in force if they can't be read","tier":"notice","area":"Hooks","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/org-hook-restrictions-persist-when-managed-settings-are-empt","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Organization hook restrictions stay in force if they can't be read\n\nIf Claude Code can't read an organization's hook restrictions, it now runs only managed hooks and keeps command-fetched plugins off\n\n**What**\n\nHooks are your own commands that Claude Code runs at set moments, such as before a tool is used. Organizations can restrict them through managed settings, which are settings an organization deploys to its users' machines. Examples are `disableAllHooks` and `allowManagedHooksOnly`.\n\nClaude Code now keeps a record of these restrictions. If it could not read the organization's hook restrictions before the managed settings were emptied, it does the following:\n\n- Runs only the hooks the organization deploys.\n\n- Keeps plugins that are fetched by running a command switched off.\n\n- Logs the problem as an error.\n\n**Why**\n\nA failure to read the policy now leaves the restrictions on rather than lifting them, so an organization's hook rules cannot be dropped by accident.\n\n- Area: Hooks\n- Names: `disableAllHooks`, `allowManagedHooksOnly`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: yes"}