> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit a policy

> Change an existing Ranger policy from the NexusOne portal.

Edit a policy to change what it covers, who it applies to, or how Ranger enforces it. Ranger applies your changes
directly when you save.

## Prerequisites

Before starting this task, ensure you have the following:

Required roles: `nx1_migration_admin` or `nx1_migration_ops`.

## Edit a policy

> [tab] Web portal
>
> Perform these steps to edit a policy.
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Govern** and then select **Data Access**.
> 3. Click the **All policies** tab.
> 4. In the **Search policies by name** field, enter the policy name.
> 5. Click the pencil icon on the policy's row.
> 6. Change the fields you need. The fields are the same as when you [create a policy](https://docs.nx1cloud.com/documentation/govern/tasks/data-access/ranger-policy/create-a-policy.md).
> 7. Click **Save changes**.

> [tab] REST API
>
> Use the following API endpoints to:
>
> 1. [Get a single Ranger policy](https://docs.nx1cloud.com/api-reference/endpoints/policy-management/get-a-single-ranger-policy.md).
> 2. [Create or update a single Ranger policy](https://docs.nx1cloud.com/api-reference/endpoints/policy-management/create-or-update-a-single-ranger-policy.md).

## Additional resources

For an overview of the Govern feature, refer to [Govern Overview](https://docs.nx1cloud.com/documentation/govern/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.