# Policy Assignment

### When a new user is imported into dope.swg, they are automatically assigned to the Base Policy. If they are assigned to a policy based on a group, this will override the Base Policy.

On the creation of a new policy it is possible to assign users to a policy by either User Name or Group.

To do this, in the Policy select the Users tab on the lefthand side.

![Assigned Users/Groups to a Policy](/files/8rO1vtnfB2wFh2IoH5Rt)

In the text box, enter in a user or group from your imported users and groups. Once you start typing, the console will provide suggested users and groups.

<figure><img src="/files/TWUl7ykU0k7FHMA64zAz" alt=""><figcaption></figcaption></figure>

Once you have assigned the user or group, then the policy will need to be saved.

<figure><img src="/files/u9XYdLJ7oggpdQQ2fJmW" alt=""><figcaption></figcaption></figure>

It is also possible to delete an assignment. Simply select the user or group whose assignment you want to delete and from the righthand panel select the Delete option.

<figure><img src="/files/YTCFbAn8SsEnIKMuk2ka" alt=""><figcaption></figcaption></figure>

After you have deleted the assignment, save the policy.

## Some Simple Rules

{% hint style="warning" %}
You cannot add the same user or group to multiple policies.

In the case of multiple policies, where a user has been assigned to more than one policy, then the user shall default to the Base Policy.

If an individual user has been assigned to a policy and that user is already in a group assigned to another policy, the individual policy will take precedence over the group policy.

Any update to the user and group data will be reflected in the policy assignment view.

If a user is not assigned to a policy they will default to the Base Policy
{% endhint %}

{% hint style="info" %}
You can use the policy tester to check the policy that a user or group is assigned to.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://inflight.dope.security/dope.console/dope.swg-policy/policy-assignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
