--- title: "identitypolicy modify" slug: "identitypolicy-modify" tags: ["5.4"] updated: 2026-10-28T01:52:43Z published: 2026-10-28T01:52:43Z canonical: "docs.vastdata.com/identitypolicy-modify" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # identitypolicy modify This command modifies an identity policy and can be used to enable or disable an identity policy, such as an identity policy that was replicated from an async replication peer. ##### Usage ```plaintext identitypolicy modify --id ID                     [--name NAME]                     [--policy POLICY]                     [--tenant-id ID]                     [--enable|--disable] ``` ##### Required Parameters | `--id ID` | Specifies which identity policy to modify. | | --- | --- | ##### Options | `--name NAME` | Changes the name of the identity policy. | | --- | --- | | `--policy POLICY` | Replaces the policy content with a new policy content. For information about how to write identity policies, see [Creating Identity Policies](/docs-5-4/docs/en/creating-identity-policies) .Creating Identity Policies | | `--tenant-id ID` | Identifies the tenant associated with this identity policy. | | `--enable` | Enables a policy that was disabled or was replicated to the cluster from an async replication peer, in which case, it is disabled by default. | | `--disable` | Disables the policy. | ##### Example ```plaintext vcli: admin> identitypolicy modify --id 10 --name allow_all ```