> For the complete documentation index, see [llms.txt](https://eaclouddoc.eauditor.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eaclouddoc.eauditor.eu/eacloud-docs-en/features/data-loss-prevention/dlp-policies-and-rules/editing-and-assignments.md).

# Editing and Assignments

After creating a policy and rules, you can change their configuration and scope of operation at any time.

You can, among other things:

* change the rule settings,
* modify triggers, actions, and notifications,
* change the devices covered by the policy,
* change the users covered by the policy,
* exclude selected users,
* activate or disable the policy.

{% hint style="info" %}
Changing a policy assignment does not change the configuration of the rules it contains. It does, however, change **their scope of operation**, that is, the users and devices to which they will be applied.
{% endhint %}

### Editing a rule

An existing rule can be changed without having to create it again.

{% stepper %}
{% step %}

#### Find the policy

Go to:

**Data Leak Prevention -> DLP Policies and Rules -> Policies**

Click the policy name to display the rules assigned to it.
{% endstep %}

{% step %}

#### Open the rule

For the selected rule, click the icon **Edit**.

The rule will open in a separate tab.

<div align="left"><figure><img src="https://3262380731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fdzip3GyvGq5q5J3qckWN%2Fuploads%2FAwQPKbrabZLZxBjeGtdE%2Fimage.png?alt=media&amp;token=0a20628b-b7eb-4008-8def-bc8ca313902b" alt="Rozwinięta polityka DLP z widoczną ikoną edycji przy przypisanej regule." width="374"><figcaption><p><em>Editing an existing rule can be started directly from the policy view.</em></p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Change the configuration

Depending on your needs, modify:

* the rule name,
* triggers,
* trigger parameters,
* actions,
* notifications.
  {% endstep %}

{% step %}

#### Save the changes

After finishing the edit, save the rule.

The modified configuration will be saved in the console.
{% endstep %}

{% step %}

#### Update the policies

After saving the changes, go to the policy view and click:

**Update the policies**

Only after the current configuration is deployed can eAgents begin using the modified rule.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Before changing an active rule, verify how broad the scope of the policy it belongs to is. Changing the rule may affect all users and all devices covered by that policy.
{% endhint %}

### Editing policy assignments

Assignments define, **where the policy is to apply**.

After creating a policy, you can change the devices and users assigned to it without having to create a new policy.

{% stepper %}
{% step %}

#### Open policy editing

In the **Policies** find the policy whose scope you want to change.

Click the icon **Edit**.
{% endstep %}

{% step %}

#### Check target objects

In the target objects section, review the devices covered by the policy.

Depending on the configuration, you can leave a broad scope or specify selected devices.

<div align="left"><figure><img src="https://3262380731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fdzip3GyvGq5q5J3qckWN%2Fuploads%2FaJSXfSdF8I8bjXsNh3tP%2Fimage.png?alt=media&amp;token=5b70a85b-d0ae-4c63-a77f-c4b878fdcf7e" alt="Panel edycji polityki DLP z sekcją obiektów docelowych umożliwiającą zmianę przypisanych urządzeń." width="375"><figcaption><p><em>Target objects define the devices on which the policy rules apply.</em></p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Check target users

In the users section, specify the people who are to be covered by the policy.

You can change existing assignments and specify users who should not be covered by the policy.

<div align="left"><figure><img src="https://3262380731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fdzip3GyvGq5q5J3qckWN%2Fuploads%2FOwGCoiyT1Vu76JFsblDU%2Fimage.png?alt=media&amp;token=30d8f869-ea57-481b-b8ad-249604f07d2e" alt="Panel edycji polityki DLP z sekcją użytkowników docelowych i konfiguracją przypisań użytkowników." width="375"><figcaption><p><em>User assignments define which people the policy rules apply to.</em></p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Save the changes

Review the configuration scope and save the policy.
{% endstep %}

{% step %}

#### Update the policies

After changing the assignments, click:

**Update the policies**

Until the current configuration is deployed, eAgents can continue using the previous assignments.
{% endstep %}
{% endstepper %}

### How do assignments work?

A policy assignment defines the scope in which the rules it contains will be applied.

Example:

Policy **DLP - Accounting** includes:

* USB storage control,
* file sending control,
* blocking specific operations.

If the policy is assigned to the accounting department's computers and its users, the rules contained in it will be applied within that scope.

Changing the assignment does not require recreating the rules.

### Objects and users

When defining the scope of a policy, pay attention to two independent elements:

| Assignment         | What it defines               |
| ------------------ | ----------------------------- |
| **Target objects** | Devices covered by the policy |
| **Target users**   | Users covered by the policy   |

This makes it possible to build policies tailored both to devices and to the people using the environment.

{% hint style="info" %}
It is advisable to define a policy's scope as precisely as possible. The more restrictive the rule, the more important it is to verify that it does not include devices or users for whom it was not intended.
{% endhint %}

### Excluding users

If a policy is intended to cover a broad group of users but should not apply to specific individuals, you can use exclusions.

Example:

A policy that blocks the use of specific media applies to all users of selected computers, but the IT administrator performing maintenance tasks should be excluded from it.

In this situation, there is no need to create a separate policy just for the remaining users - an appropriate exclusion can be applied.

{% hint style="warning" %}
Excluding a user means that the rules resulting from a given policy will not be applied to that user within the configured scope. Use exclusions deliberately and periodically check whether they are still needed.
{% endhint %}

### Changing assignments for an existing policy

Changing the scope of a policy can have two effects:

#### Adding new assignments

If you add new devices or new users, they will be covered by the rules in the policy after the current configuration is deployed.

#### Removing assignments

If you remove a device or user from the policy's scope, the rules of that policy will stop being applied to it after the modified configuration is deployed.

{% hint style="warning" %}
Before expanding the scope of an active policy, review all rules contained in it. Blocking actions require particular attention, because after assignments are changed, they may begin to apply to new devices or new users.
{% endhint %}

### Safely changing an active policy

When changing a policy already in use in the environment, we recommend the following sequence:

{% stepper %}
{% step %}

#### Check the current scope

Before making changes, review the devices and users currently covered by the policy.
{% endstep %}

{% step %}

#### Review the rules

Verify which triggers and actions are in the policy.

Pay special attention to rules that cause operations to be blocked.
{% endstep %}

{% step %}

#### Make the change

Modify the rule or the policy assignments.
{% endstep %}

{% step %}

#### Save the configuration

Review the modified settings and save the configuration.
{% endstep %}

{% step %}

#### Update the policies

Click **Update the policies**, to deploy the latest configuration to eAgents.
{% endstep %}

{% step %}

#### Check the result

After deploying the change, perform a controlled test and review events in:

**Data Leak Prevention -> DLP Logs**
{% endstep %}
{% endstepper %}

### Copying and moving rules

If you do not want to modify an existing rule, you can also:

* create a copy of it,
* move it to another policy.

These operations are described in detail in the section **Rules**.

{% hint style="info" %}
If the existing configuration works correctly, but you need a similar rule for another group of users, it is often safer to copy it and modify the copy rather than change the active rule.
{% endhint %}

### FAQ

<details>

<summary><strong>After creating a policy, can I change the assigned devices?</strong></summary>

Yes. Open policy editing and change the target objects configuration.

After saving the changes, use the option **Update the policies**.

</details>

<details>

<summary><strong>Can I change the users covered by an existing policy?</strong></summary>

Yes. User assignments can also be edited after the policy is created.

</details>

<details>

<summary><strong>Do I need to create a new policy after changing its scope?</strong></summary>

No. The scope of an existing policy can be changed by editing the assigned devices and users.

</details>

<details>

<summary><strong>Does changing</strong> <strong>the assignment also change the rule configuration?</strong></summary>

No. The rules remain configured the same way.

Only the scope of the devices or users to which they are applied changes.

</details>

<details>

<summary><strong>Can I exclude a single user from a policy?</strong></summary>

Yes. Policy configuration supports user exclusions; you can specify the individuals to whom the policy should not be applied.

</details>

<details>

<summary><strong>Why is the assignment change not yet visible on the computer?</strong></summary>

After changing the configuration, use the option **Update the policies**.

Until the current configuration is deployed, eAgent may use the previous version of the assignments.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://eaclouddoc.eauditor.eu/eacloud-docs-en/features/data-loss-prevention/dlp-policies-and-rules/editing-and-assignments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
