This page describes how to edit or delete an Active Directory policy.

## About Active Directory policy settings

You can change Active Directory policy settings depending on the status of the
policy.

After you create a volume with an Active Directory policy, the policy status
changes to **Ready** . When the policy status is **Ready**, you can modify
all settings except for the policy name and region.

When a volume uses an Active Directory policy, the policy status changes to
**In use** . When the policy status is **In use** , you can't change the
following settings until all volumes using the policy are deleted and the
policy status transitions back to **Ready**:

- Domain name

- Organizational unit

- `NetBIOS` name prefix

## Considerations

Changing the `NetBIOS` name prefix is disruptive to existing volumes
which use the policy because it changes the hostname of the SMB Universal Naming
Convention (UNC) path, which renders existing client mappings stale. Clients must
then remap the volumes using the new UNC path.

## Edit an Active Directory policy

Use the following instructions to edit an Active Directory policy using the
Google Cloud console or Google Cloud CLI.

### Console

Use the following instructions to update an Active Directory policy in the
Google Cloud console:

1. Go to the **NetApp Volumes** page in the Google Cloud console.

   [Go to NetApp Volumes](https://console.cloud.google.com/netapp/volumes)
2. Select **Active Directory policies**.

3. Click the name of the Active Directory policy you want to edit.

4. Click **Edit**.

5. Change the required fields.

6. Click **Save**. The policy list page appears.

7. Click the policy you edited. The policy details page appears.

8. [Test the connection to the Active Directory service](https://docs.cloud.google.com/netapp/volumes/docs/configure-and-use/active-directory/test-ad-policy-connection).

### gcloud

In the Google Cloud CLI, edit an Active Directory policy:

```json
 gcloud netapp active-directories update
```

For more information on additional optional flags, see
[Google Cloud SDK documentation on Active Directory update](https://docs.cloud.google.com/sdk/gcloud/reference/netapp/active-directories/update).

## Delete an Active Directory policy

You can only delete an Active Directory policy when the policy status is
**Ready** . When an Active Directory policy attaches to a storage pool,
the policy status transitions to **In use** . You need to delete all pools using
the policy first, before it transitions back to **Ready**.

## What's next

[Connect to Managed Service for Microsoft Active Directory](https://docs.cloud.google.com/netapp/volumes/docs/configure-and-use/active-directory/connect-to-managed-service-for-microsoft-ad).