---
title: "Add or Manage Policy: Complete Guide to Policy Management in Nodinite"
description: Step-by-step guide to adding, editing, deleting, and restoring Policies in Nodinite v7. Learn how to group Claims into Policies for OIDC/OAuth 2.0 authorization with three-tab interface and role assignments.
---

<!-- markdownlint-disable MD033 MD041 -->

# Add or Manage Policy

Master Policy management in :Nodinite: v7 with this comprehensive guide. Learn how to create, edit, delete, and restore Policies that group [Claims][] and assign them to [Roles][] for OIDC/OAuth 2.0 authorization.

* ✅ Name and describe your Policy for clear intent  
* ✅ Select Claims using three-tab interface (New, All, Selected)  
* ✅ Assign Policy to one or more Roles - vital for activation  
* ✅ Create new Claims directly while building Policies  

![Animation: Add Policy, enter Name and Description, filter the Claims card's All tab on Contoso, tick two Claims, and open the Selected tab][20]  
*Building a Policy: Name and Description, then two Claims ticked on the **All** tab and checked on the **Selected** tab.*  

>[!NOTE]
>[Policies][] are **only available** when :Nodinite: is configured for **OIDC/OAuth 2.0 authentication mode** ([Install Nodinite v7 - OpenID][]). For Windows authentication mode, use [Users][] and [Windows AD Groups][] instead.
>
> :fa-info-circle: New to Policies? Read [What is a Policy?][Policies] first to understand the authorization model.

## Accessing Policy Management

Navigate to **Administration** → [Access Management][] → **Policies** in the :Nodinite: [Web Client][].

![Administration sidebar with the Policies menu item][1]  
*Location of the Policies menu item in the Administration sidebar.*  

## Policies List View

The Policies management page displays all Policies with:

* **Status** - Available or Deleted indicator
* **Name** - The Policy name (clickable link)
* **Description** - Policy purpose
* **Created/Changed** - Timestamps
* **Actions** - Edit, Show in [Mapify][], Show in [Mermaid][], and Delete (Restore on a deleted Policy)

![Policies Overview list with filter box, Include deleted checkbox, and the Policies Admin, Contoso: Finance Access and Default][2]  
*The Policies list; the list itself is described in the [Policies Overview][].*  

---

## :fa-plus-square: Adding a New Policy

### Step 1: Click "Add Policy"

Click the **"Add Policy"** button in the top-right corner.  
  ![Add Policy button on the Policies Overview][3]  
  *The Add Policy button opens an empty Policy detail page.*  

### Step 2: Enter General Information

Fill in the Policy details:

|Field|Required|Description|  
|---|---|---|  
|**Name**|✅ Yes|Unique name for the Policy (can be changed later). **Save** refuses a name that's in use, deleted Policies included, with *Name : The name is in use*. The [Web API][] answers 400 *Name is required* for a Policy without a name.|  
|**Description**|⚠️ Recommended|Clear description of the Policy's intent and purpose|  

![Policy detail page with the Name and Description fields][4]  
*The general information of a Policy: a unique Name and a Description of its intent.*  

>[!TIP]
>Use descriptive names like "Finance Admin Policy" or "Europe Read-Only Access". The Description should explain what access this Policy grants and why it exists.

At the bottom of the page you find **Delete** (or **Restore** on a deleted Policy), **Save**, **Save and close**, and **Close**. The header holds **Mapify**, **Mermaid**, **Add Policy**, and **Save**.  
  ![Footer of the Policy detail page with Delete, Save, Save and close, and Close buttons][18]  
  *The footer buttons delete, save, or close the Policy.*  

### Step 3: Select Claims

>[!IMPORTANT]
>**CRITICAL: Adding Claims to Existing Policies Can Lock You Out!**
>
>**Before adding any Claim to an existing Policy:**
>
>1. **Verify the Claim exists in your Identity Provider (IDP)** - The exact key and value must match what your IDP provides to users
>2. **Understand AND logic** - ALL Claims in a Policy must match. Adding one more Claim makes the Policy harder to satisfy
>3. **Risk of lockout** - If you add a Claim that doesn't exist in your IDP, **NO users** (including you as admin) will match the Policy
>4. **Test with non-admin first** - Never test Policy changes with your admin account first
>5. **:fa-clock: Changes are fast** - A Policy change reaches signed-in users within about 15 seconds. The [Web API][] refuses a change that would take the Administrators Role from *you* (HTTP 409), but other administrators can still be locked out
>
>**Example of dangerous operation:**
>
>```text
>Existing Policy "Administrators" contains:
>  - Group=Admin
>
>You add (thinking it helps):
>  - Department=IT
>
>Result: Now users need BOTH Group=Admin AND Department=IT
>If your IDP doesn't provide Department claim, every other admin loses access within 15 seconds! ❌
>
>You fix it:
>  - Remove the Department=IT Claim from the Policy again (Selected tab), Save
>  - Or update the IDP to send Department=IT; it arrives with each user's next token, at once after signing out and in
>```
>
>**Safe alternatives:**
>
>* Create a NEW Policy instead of modifying existing ones
>* Test with a test role first, not production admin roles
>* Document what Claims your IDP actually provides
>* Have a backup admin account before making changes

The Policy detail page includes a **Claims** card with three tabs for managing [Claims][]:

#### :fa-plus: New Tab

Create new Claims directly within this Policy:  
  ![Claims card on a Policy with the New tab and Key, Value, Description fields][5]  
  *The New tab creates a Claim and can add it to the Policy in one step.*  

* **Key** (Required) - The claim key, as the [Web API][] sees it after .NET's mapping. :new7.12: The same hint as on the [Claims][] page lists the renamed token claims (`roles` and `role` become `http://schemas.microsoft.com/ws/2008/06/identity/claims/role`), and **Show every renamed token claim** opens the full table
* **Value** (Required) - The claim value  

  ![New tab of a Policy's Claims card with the Key roles and the expanded table of renamed token claims (7.12)][23]  
  *The Key hint and the **Show every renamed token claim** table, next to the Roles card.*  

* **Description** (Optional) - Claim description

##### Save Options

* **"Add and Use"** - Creates the Claim AND adds it to this Policy (recommended)
* **"Add"** - Creates the Claim only (doesn't add to Policy)
* **"Cancel"** - Discards the input
* When you edit an existing Claim, the buttons are **"Save"** and **"Save and Use"**

![Animation: on the New tab enter Key Group and Value Contoso-Auditors, click Add and Use, check the three Claims on the Selected tab, tick the Role Contoso: Warehouse Staff, Save, and find the new Policy in the list][21]  
*The **New** tab: **Add and Use** creates the Claim and selects it in one step; then a Role and **Save**.*  

>[!TIP]
>Use the **"+ New"** tab when you need to create Claims specifically for this Policy. This is the quickest way to build a new Policy from scratch.

#### All Tab

Browse and select from all existing Claims in the system:  
  ![Claims card on a Policy with the All tab listing every Claim with checkboxes][6]  
  *The All tab lists every Claim; checked Claims are part of the Policy.*  

* View all Claims in the system
* Use checkboxes to select Claims to add to this Policy
* Search and filter Claims
* Toggle "Include Deleted" to show deleted Claims
* Edit button opens Claim in the New tab for modification

##### Actions in the All Tab

* Check boxes to add Claims to the Policy
* Master checkbox selects/deselects all visible Claims
* Click edit icon to modify an existing Claim

#### Selected Tab

View and manage Claims currently assigned to this Policy:  
  ![Claims card on a Policy with the Selected tab listing the Claims in the Policy][7]  
  *The Selected tab shows only the Claims in this Policy.*  

* Shows only Claims included in this Policy
* Uncheck boxes to remove Claims from the Policy
* A yellow **Deleted** badge marks deleted Claims (tick **Include deleted** to see them)
* Search within selected Claims
* Displays count of selected Claims

##### Actions in the Selected Tab

* Uncheck boxes to remove Claims from Policy
* Master checkbox (red) removes all Claims
* Shows total count: "X Claims selected"

>[!IMPORTANT]
>**REMOVING Claims from Active Policies:**
>
> Removing Claims makes the Policy EASIER to satisfy (fewer conditions), but may grant access to unintended users.
>
> **Example:**
>
> ```text
> Policy "Finance Admins" currently requires:
>   - Department=Finance (AND)
>   - AccessLevel=Admin   (AND)
>
> If you remove "Department=Finance":
>   - Now ANY user with AccessLevel=Admin gets access (including IT, HR, etc.)
> ```
>
> **Best practice:** Create a NEW Policy instead of removing Claims from existing ones.
>
>[!WARNING]
>**Avoid Conflicting Claims:** :Nodinite: lets you add several Claims with the same key, and then requires all their values. A single-valued claim can never satisfy that, which blocks all users; only a multi-valued claim (such as several groups) can.
>
>**Example:**
>
>```text
>❌ No user matches: Country=Sweden AND Country=Norway in same Policy
>✅ Valid: Create separate Policies for each country
>```
>
>See [Understanding Claim Logic][Policies] for details.

### Step 4: Assign to Roles

The Policy detail page includes a **Roles** card showing which [Roles][] have this Policy assigned.  
  ![Roles card on a Policy with All and Selected tabs and Role checkboxes][17]  
  *The Roles card assigns the Policy to Roles; this is where the Policy takes effect.*  

#### Select Roles

* View all available Roles on the **All** tab, and the assigned ones on the **Selected** tab; both have a filter
* Use checkboxes to assign this Policy to one or more Roles; at least one is required before you can save
* Toggle "Include deleted" to show deleted Roles
* The **Administrators** role is built-in and cannot be deleted

#### Actions in the Roles Card

* Check boxes to assign the Policy to those Roles
* Uncheck boxes to remove the Policy from those Roles
* Master checkbox selects/deselects all visible Roles

>[!IMPORTANT]
>**A Policy without Role assignments is useless.** Users receive permissions through their Role assignments, and the Role's permission sets ([Log Views][Permission Set for Log Views], [Monitor Views][Permission Set for Monitor Views], [Repository Model][Permission Set for the Repository Model], [C4 Diagram Sets][Permission Set for C4 Diagram Sets]) decide what they see. If a Policy is not assigned to any Role, no users will be affected by it.
>
>[!TIP]
>You can assign the same Policy to multiple Roles. The Role's **Policies** card in [Add or manage Role][] only lists the assigned Policies; you change the assignment here. This is common for cross-functional permissions like "Production Environment Access" that applies to multiple departments.

### Step 5: Save the Policy

Click the **"Save"** button in the top-right corner to save the Policy with its Claims and Role assignments.

![Save button on the Policy detail page][8]  
*The header holds Mapify, Mermaid, Add Policy, and Save. **Save** stays disabled until the Policy has at least one Claim and one Role.*  

Until then the page shows *You must select at least one Claim and at least one Role to be able to save the Policy.* :new7.12: The [Web API][] refuses such a Policy too (HTTP 400), so a script or an MCP tool can't save one either. The name must be unique, regardless of case and including deleted Policies (*Policy Name '…' is already in use*).

#### Example of Invalid Configuration

>```text
> ❌ Policy contains:
>    Country=Sweden (AND)
>    Country=Norway (AND)
>
> Result: No user can satisfy this (can't be in two countries)
>```
>
>**Correct approach:** Create separate Policies and assign both to the same Role for OR logic. See [Understanding Claim Logic][Policies] for details.

---

## :fa-edit: Editing an Existing Policy

### Step 1: Navigate to Policy

From the Policies list:

* Click the Policy **name** link, OR
* Click **"Actions"** → **"Edit"**

### Step 2: Modify Fields

Update the Policy:

* Change **Name** or **Description**
* Add/remove **Claims** using the three tabs (New, All, Selected)
* Assign/unassign **Roles** using checkboxes
* Review warning badges for any deleted Claims or Roles

### Step 3: Save Changes

Click **"Save"** to apply all changes to the Policy. Signed-in users get the change within about 15 seconds, without signing in again.

---

## :fa-trash-can: Deleting a Policy

You can delete a Policy using two methods. The walkthrough shows a delete and a restore, and what the Role shows in between:

![Animation: filter on Contoso Temp, Action, Delete, Yes; the Role Contoso: Warehouse Staff shows the Policy with a Deleted badge; Include deleted, Action, Restore, Yes; the Role lists the Policy again without the badge][22]  
*Delete and Restore: the Role keeps the link the whole time, marked **Deleted** until the Policy is restored.*  

### Method 1: Delete from Overview Page

From the [Policies Overview][] list:

1. Click **"Actions"** dropdown on the Policy row
2. Select **"Delete"** from the menu
3. Confirm deletion in the modal dialog

### Method 2: Delete from Policy Detail Page

1. Navigate to the Policy by clicking the Policy **name** link or **"Actions"** → **"Edit"**
2. At the bottom of the Policy detail page, click the **"Delete"** button

![Delete button in the footer of the Policy detail page][9]  
*The red Delete button sits at the bottom left of the Policy detail page.*  

### Confirm Deletion

Both deletion methods will show a confirmation modal:  
  ![Confirm intent to Delete modal asking Are you sure you want to Delete Policy: Contoso Temp Policy, with Yes and No buttons][11]  
  *The confirmation modal names the Policy before you delete it.*  

Click **"Yes"** to confirm, or **"No"** to abort.

If the operation is successful, the page shows *Policy … is now deleted!*  
  ![Success message Policy Contoso Temp Policy is now deleted][16]  
  *A success message confirms the deletion.*  

### Important Notes About Deletion

>[!IMPORTANT]
>**Deleted Policies and Roles:**
>
>* Delete is a soft delete of the Policy only. Its [Roles][] keep the link: the Role's **Policies** card lists it with a yellow **Deleted** badge
>* A deleted Policy grants nothing
>* The [Claims][] within the Policy are NOT deleted
>* You can restore deleted Policies at any time, and the Roles get them back
>* The change is recorded in [Log Audits][] (`cnfg_Policies_Delete`)
>
>[!TIP]
>**Best Practice:** Open the Policy first and check its **Roles** card, so you know which [Roles][] lose it while it's deleted.

### Verify Deletion

* Policy is removed from the main list
* The success message appears
* To see deleted Policies, enable the **"Include deleted"** filter ([Show deleted records][Show Deleted])

---

## :fa-redo: Restoring a Deleted Policy

### Step 1: Enable "Include deleted" Filter

From the Policies list page, check the **"Include deleted"** checkbox at the top.  
  ![Policies list with Include deleted checked showing a deleted Policy][10]  
  *With "Include deleted" checked, deleted Policies are listed too.*  

### Step 2: Locate the Deleted Policy

Deleted Policies appear with:

* Red "Deleted" status badge
* Their Name and Description unchanged

![Policies list row with a red Deleted status badge][12]  
*Deleted Policies keep their Name and Description.*  

### Step 3: Open Actions Menu

Click the **"Action"** dropdown button on the deleted Policy row.  
  ![Action dropdown menu on a deleted Policy row][13]  
  *The Action menu of a deleted Policy.*  

### Step 4: Select Restore

Select **"Restore"** from the menu.  
  ![Action menu with the Restore menu item highlighted][14]  
  *On a deleted Policy, 'Restore' replaces 'Delete'.*  

### Step 5: Confirm Restoration

A confirmation modal appears:  
  ![Confirm intent to Restore modal asking Are you sure you want to Restore Policy: Contoso Temp Policy, with Yes and No buttons][15]  
  *The confirmation modal names the Policy before you restore it.*  

Click **"Yes"** to confirm.

If the operation is successful, the page shows *Policy … is now restored!*  
  ![Success message Policy Contoso Temp Policy is now restored][19]  
  *A success message confirms the restore.*  

### Step 6: Verify Restoration

* Policy returns to active status
* "Deleted" badge removed
* Its [Roles][] grant it again; the Role's **Policies** card shows it without the badge, and nothing needs to be reassigned
* The change is recorded in [Log Audits][] (`cnfg_Policies_Restore`)

---

## :fa-user-tag: Audit Trail

Every Policy change is recorded in [Log Audits][] (application Web API). From 7.13 the log texts name the Policy and what changed:

| Change | Function | Log text |
| --- | --- | --- |
| Add | `cnfg_Policies_Insert` | *Added Policy 'Ops' (Id 12): Claims: Claim 'Group = Ops' (Id 5), Roles: Role 'Operators' (Id 3).* A Description shows only its length. An empty list reads *none*. |
| Edit | `cnfg_Policies_Update` | *Updated Policy 'B' (Id 12): Name: 'A' -> 'B', Description: changed (10 -> 12 characters), Claims: added Claim 'x = 1' (Id …), removed Claim 'y = 2' (Id …), Roles: …* (only what changed), or *…: no field changed.* |
| Delete | `cnfg_Policies_Delete` | *Deleted Policy 'Ops' (Id 12) (restorable). Links kept: Claims 1, Roles 1.* |
| Restore | `cnfg_Policies_Restore` | *Restored Policy 'Ops' (Id 12). Links unchanged: Claims 1, Roles 1.* |

## Best Practices and Common Scenarios

For comprehensive guidance on Policy best practices, including:

* **Naming conventions** - Clear, descriptive names
* **Claim selection rules** - One value per key, avoiding conflicts
* **AND/OR logic** - Understanding how Claims combine within and between Policies
* **Logical grouping** - Department, regional, and functional Policies
* **Reusability** - Designing Policies for multiple Roles
* **Common scenarios** - Department-based access, multi-permission, tiered access, environment separation

See the comprehensive guide: [What is a Policy?][Policies]

>[!TIP]
>**Looking for more examples?** See [Common Scenarios][] for comprehensive implementation guides including department-based policies, regional authorization, and multi-tenant setups.
>
>[!NOTE]
>**Having issues?** Check the [Troubleshooting Guide][] for solutions to common Policy management problems.

## :fa-hand-point-right: Next Steps

* :fa-users-class: [What is a Role?][Roles]  
* :fa-key: [What is a Claim?][Claims]  
* :fa-shield-check: [Policies Overview][]  

## :fa-link-horizontal: Related Topics

* :fa-shield-check: [What is a Policy?][Policies]  
* :fa-shield-check: [Policies Overview][]  
* :fa-key: [Claims][]  
* :fa-key: [Add or manage Claim][]  

* :fa-users-class: [Add or manage Role][]  
* :fa-hard-drive: [Permission Set for Log Views][]  
* :fa-display: [Permission Set for Monitor Views][]  
* :fa-sitemap: [Permission Set for the Repository Model][]  
* :fa-layer-group: [Permission Set for C4 Diagram Sets][]  

* :fa-user-secret: [Access Management][]  
* :fa-id-card: [Install Nodinite v7 - OpenID][]  
* :fa-magnifying-glass: [Entra ID Token Claims Validation][]  
* :fa-user-tag: [Log Audits][]  

* :fa-book: [Common Scenarios][] - Implementation examples  
* :fa-wrench: [Troubleshooting Guide][] - Solutions to common issues  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PoliciesMenu.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/Overview.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/AddPolicyButton.png
[4]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyGeneralInfo.png
[5]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyNewEditTab.png
[6]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyAllTab.png
[7]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicySelectedTab.png
[8]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/SavePolicyButton.png
[9]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/FooterButton_Delete.png
[10]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/IncludeDeletedFilter.png
[11]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/DeletePolicyConfirmationModal.png
[12]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/DeletedPolicyInList.png
[13]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyActionsWithRestoreDropdown.png
[14]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyRestoreMenuItem.png
[15]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyRestoreConfirmationModal.png
[16]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyDeletedSuccessNotification.png
[17]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyRolesCard.png
[18]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/FooterButtons.png
[19]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyRestoredSuccessNotification.png
[20]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/Policies_SelectClaims.gif
[21]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/Policies_NewClaimAndSave.gif
[22]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/Policies_DeleteRestore.gif
[23]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyNewClaimKeyHint.png

[Access Management]:{ndr}/Administration/3.%20Access%20Management/Overview.md
[Add or manage Claim]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Features/Add%20or%20manage%20Claim.md
[Add or manage Role]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Add%20or%20manage%20Role.md
[Claims]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Features/What%20is%20a%20Claim.md
[Common Scenarios]:{ndr}/Administration/3.%20Access%20Management/Getting%20Started/Common%20Scenarios.md
[Entra ID Token Claims Validation]:{ndr}/Install%20and%20Update/Troubleshooting/Azure/Entra%20ID%20Token%20Claims%20Validation.md
[Install Nodinite v7 - OpenID]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Mapify]:{ndr}/Mapify/Overview.md
[Mermaid]:https://mermaid.js.org
[Permission Set for C4 Diagram Sets]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20C4%20Diagram%20Sets.md
[Permission Set for Log Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md
[Permission Set for Monitor Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Monitor%20Views.md
[Permission Set for the Repository Model]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20the%20Repository%20Model.md
[Policies]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/What%20is%20a%20Policy.md
[Policies Overview]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Overview.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Show Deleted]:{ndr}/Administration/6.%20Tools/Show%20deleted%20records.md
[Troubleshooting Guide]:{ndr}/Administration/3.%20Access%20Management/Troubleshooting/Overview.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows AD Groups]:{ndr}/Administration/3.%20Access%20Management/3.%20Windows%20AD%20Groups/Features/What%20is%20a%20Windows%20AD%20Group.md