---
title: Creating a Policy Realm
slug: reference-guide-3-0-0/creating-a-policy-realm
description: Learn how to define policy realms in this document. Follow step-by-step instructions to navigate to the Session Policy section, open the Policy Realm tab, and select the policy group and device realm. Discover the importance of policy keys and their impac
docTags: 
createdAt: 2022-08-01T16:22:47.000Z
---

Policy realms define which policies are applied to which device realms.

1. Navigate to **Policy Control** >**&#x20;Session Policy**.
2. Open the **Policy Realm** tab.
3. Enter the **Policy Realm** name and select th&#x65;**&#x20;Policy Group** and **Device Realm**.
4. Click **Save**.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/mZPJCmXbEtb4G6H4xMW3D_image.png "Defining a Policy Realm")

:::hint{type="info"}
At least one policy key must be assigned to the related realm for SQL proxies.
\*If only black key policies are defined in a realm, all remaining queries will be white key.
\*If only white key policies are defined in a realm, all remaining queries will be black key.
\*If only the “.\*” regex is defined as a white key, all queries are allowed to run.
\*If only the “.\*” regex is defined as a black key, all queries will be blocked.
:::

