# Custom Policy

### **The world’s a small place, but it’s got a lot of rules. When you’re flying first class, you want friction-free travel as you traverse the globe.**

**You may need to create multiple policies to deal with your organization’s needs** ⁠— **different geographical locations may require specific customizations for your organization’s needs in that location. Or you may need to create special requirements for some of your user groups. dope.swg has thought of that.**<br>

{% hint style="info" %}
To create a custom policy, you need to have previously imported all users and group data.
{% endhint %}

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

To create your first new policy, click on the “Create a New Policy” button on the right-side panel. Name your policy and click on the arrow\..

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

{% hint style="info" %}
A policy name can be up to 32 characters long and must be unique.
{% endhint %}

The new policy inherits the Base Policy <img src="/files/aHS0tZS59dZ4oaQ6Xf9M" alt="" data-size="line"> configuration but you can adjust this to your requirements.

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

### Editing Your Custom Policy

Editing your new custom policy is the same as editing the base policy. [Editing the Base Policy](/dope.console/dope.swg-policy/editing-the-base-policy.md)

### Policy Testing

Before a policy can be tested it must be assigned to a user or group. [Policy Assignment](/dope.console/dope.swg-policy/policy-assignment.md)

## All Policies View

To view all Policies, select “Policies” in the navigation and it will bring you to the policy table view.

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

### Deleting a Custom Policy

You can delete a policy from this list whenever you want. Simply select the policy you want to delete, then select the delete icon <img src="/files/uNxgynrGd5mmIUaUxyKW" alt="" data-size="line"> at the end of policy’s line in the table. Confirm the deletion in the right-hand side panel.

![Delete Confirmation Option](/files/2DR9VNuEiCoe9biJOrZ3)

{% hint style="danger" %}
It is not possible to delete the Base Policy.
{% endhint %}

To create additional new policies, click on the <img src="/files/1UoNPx9RTTnXOQl1GHBx" alt="" data-size="line"> button next to “All Policies”. This will restart the flow to create a new policy.


---

# 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/custom-policy.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.
