---
title: What is a Policy? Authorization Groups in Nodinite OIDC/OAuth 2.0
description: "Understand how Policies work in Nodinite's OIDC/OAuth 2.0 authorization model: named groups of Claims with AND logic, assigned to Roles with OR logic. Learn the lockout risks, empty-Policy protection, and conflicting-Claims rules."
---

# What is a Policy?

Master flexible authorization in :Nodinite: v7 by understanding Policies. This page explains how Policies group [Claims][] together and provide the link between individual permissions and [Roles][].

* ✅ Group related Claims for easier management  
* ✅ Reusable permission sets across multiple Roles  
* ✅ Flexible authorization for complex scenarios  
* ✅ Foundation for OIDC/OAuth 2.0 access control  

![Animation: an Administrator adds the Policy Contoso: Finance Users with the Claim Group = Contoso-Finance and the Role Contoso: Operations, then the user contoso.finance signs in and sees the Role's Log Views and Monitor Views][7]  
*From Claim to Role: the Policy grants `contoso.finance` the [Log Views][] and [Monitor Views][] of **Contoso: Operations**.*  

>[!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.
>
>[!IMPORTANT]
>**:fa-skull-crossbones: Policy Configuration Dangers :fa-skull-crossbones:**
>
>* **Adding Claims to an existing Policy can lock you out.** Claims in a Policy use **AND logic**; a Claim your Identity Provider (IDP) doesn't send means no user, admins included, matches the Policy.
>* **Empty Policies grant universal access.** A Policy with **no Claims** is satisfied by **every authenticated user**; assigned to "Administrators", everyone becomes admin. The [Web Client][] doesn't save a Policy until it has at least one Claim and one Role.
>
>Never add Claims without verifying them in your IDP, never test with your only admin account, and never assign an empty Policy to a Role. See [Understanding Claim Logic in Policies](#understanding-claim-logic-in-policies) for critical details.
>
>:fa-square-plus: Get started now: [Add or manage Policy][] user guide.

A **Policy** in :Nodinite: is a **named collection of [Claims][]** that can be assigned to one or more [Roles][]. Policies provide a way to group related permissions and attributes together for easier management and reusability.

## Think of It This Way

* [Claims][] = Individual permissions (key/value pairs)
* **Policies** = Groups of related Claims
* [Roles][] = Job functions that receive Policies, and whose 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 users see

![Policy detail page with Name, Description, Claims card, and Roles card][1]  
*The Policy 'Contoso Temp Policy' groups three Claims; the Roles card on the right assigns it to the Role 'Contoso: Warehouse Staff'.*  

## Authorization Flow with Policies

Understanding how Policies fit into the authorization model:

1. [Claims][] - Individual key/value pairs (e.g., `department=finance`, `access_level=admin`)
2. **Policies** - Groups of Claims (e.g., "Finance Admin Policy" contains both Claims above)
3. [Roles][] - Assigned Policies to grant permissions (e.g., "Finance Manager" role)
4. **Users** - Authenticated via identity provider, receive Claims
5. **Authorization** - :Nodinite: matches user Claims with Policy requirements in assigned Roles

```mermaid
flowchart TB
    A["fa:fa-key Claims"] -->|"Grouped into"| B["fa:fa-shield-halved Policies"]
    B -->|"Assigned to"| C["fa:fa-users-class Roles"]
    C -->|"Grant access to"| D["fa:fa-user Users"]
    subgraph "Example"
        E["department=finance"] -->|"Included in"| F["Finance Access Policy"]
        G["access_level=admin"] -->|"Included in"| F
        F -->|"Assigned to"| H["Finance Manager Role"]
    end
    style A fill:#93d16d,color:#000
    style B fill:#2678BD,color:#fff
    style C fill:#FFD525,color:#000
    style D fill:#93d16d,color:#000
    style E fill:#93d16d,color:#000
    style G fill:#93d16d,color:#000
    style F fill:#2678BD,color:#fff
    style H fill:#FFD525,color:#000
```

*Green: Claims and the users who carry them; blue: Policies; yellow: Roles. The example shows two Claims grouped into one Policy assigned to one Role.*

## Key Characteristics

### Named Collections

Each Policy has:

* **Name** (Required) - Unique identifier for the Policy
* **Description** (Optional) - Explains the Policy's purpose
* **Claims** - One or more [Claims][] grouped together

### Reusability

Policies can be assigned to multiple [Roles][]:

* Create once, use many times
* Consistent permissions across [Roles][]
* Easier maintenance and updates

### Flexibility

Policies support complex authorization scenarios:

* Combine Claims from different categories
* Mix department, access level, and regional Claims
* Create fine-grained or broad permission sets

## Policy Structure

>[!WARNING]
>**A Policy MUST contain at least one Claim and one Role** (:Nodinite: 7.2.0+ enforces this in the Web Client; :new7.12: the [Web API][] enforces it too, so scripts and MCP tools can't save an empty Policy either).
>
>An empty Policy grants nothing - see [Empty Policy Detection][Understanding Claim Logic - Empty Policy] for details.

### Example: Finance Admin Policy

**Name:** `Finance Admin Policy`  
**Description:** `Full administrative access to finance integrations and reporting`

|Key|Value|Description|  
|---|---|---|  
|`department`|`finance`|Finance Department member|  
|`access_level`|`admin`|Administrator access level|  
|`environment`|`production`|Production environment access|  

This Policy groups three Claims together, creating a complete permission set for finance administrators.

### Example: Regional Read-Only Policy

**Name:** `Europe Read-Only Access`  
**Description:** `Read-only access to European integration monitoring`

|Key|Value|Description|  
|---|---|---|  
|`region`|`europe`|European region|  
|`access_level`|`readonly`|Read-only access level|  

This Policy combines regional and permission-level Claims.

## Policy Management

You can manage :Nodinite: **Policies** from the [Administration][] section in the :Nodinite: [Web Client][] ([Policies Overview][]):

![Administration sidebar with the Policies menu item][2]  
*The **Policies** menu item in the Administration sidebar.*  

### Available Operations

* :fa-square-plus: [Add new Policy][Add or manage Policy] - Create Policies
* :fa-edit: [Edit Policy][Add or manage Policy] - Modify Name, Description, Claims, or Roles
* :fa-trash-can: Delete Policy - Remove Policies (can be restored)
* :fa-redo: Restore Policy - Recover deleted Policies ([Include deleted][Show Deleted])
* :fa-filter: Filter Policies - Search by Name or Description
* :fa-link: Manage Claims - Add/remove Claims from the Policy
* :fa-diagram-project: :new7.12: Show in [Mapify][] or Mermaid - The Policy, its Claims and Roles, from its **Action** menu or edit page; see the [walkthrough][Windows AD Groups - Mapify and Mermaid]

### Policy Detail Page

When creating or editing a Policy, you work with:

* **General information** - **Name** (required, unique) and **Description**
* **Claims card** - three tabs: **New** creates a Claim ("Add and Use" adds it in one step), **All** lists every Claim with checkboxes, **Selected** shows the Claims in this Policy with warning badges for deleted ones
* **Roles card** - checkboxes that assign the Policy to [Roles][]

![Claims card on a Policy with the All tab listing every Claim with checkboxes][3]  
*The All tab of the Claims card; checked Claims are part of the Policy.*  

The step-by-step procedure is in [Add or manage Policy][].

## Policies vs. Users/Groups

### OIDC/OAuth 2.0 Mode (Policies)

#### How Policies Work

* Define [Claims][] (key/value pairs)
* Group Claims into Policies
* Assign Policies to [Roles][]
* Users receive access based on their Claims matching Policy requirements

#### Advantages of Policies

* Platform-independent
* Flexible and extensible
* Works with any identity provider
* Modern cloud-native approach

#### When to Use Policies

* Cloud-based deployments
* Multi-platform environments
* External identity providers (Microsoft Entra ID, Okta, etc.)
* Need modern authentication protocols

### Windows Authentication Mode (Users/Groups)

#### How Users and Groups Work

* Assign [Users][] directly to [Roles][]
* Or assign [Windows AD Groups][] to [Roles][]
* Windows handles authentication and authorization

#### Advantages of Users and Groups

* Direct Active Directory integration
* Familiar Windows security model
* No additional Claims configuration

#### When to Use Users and Groups

* On-premises deployments
* All users in Windows domain
* Traditional Windows-integrated security

>[!IMPORTANT]
>You cannot mix modes. :Nodinite: uses **either** Windows authentication (Users/Groups) **or** OIDC/OAuth 2.0 (Claims/Policies), chosen in the [Auth step][Portal Auth] at installation. To switch, see [Migrate Authentication Method][].

## Policy Assignment to Roles

Once created, Policies are assigned to [Roles][], in the **Roles** card of the Policy ([Add or manage Policy][]). The Role's **Policies** card ([Add or manage Role][]) lists the assigned Policies but doesn't change them.

### In the Role Detail Page

When viewing or editing a [Role][Roles] in OIDC/OAuth 2.0 mode, you'll see a **Policies card** showing:

![Policies card on a Role listing three assigned Policies][4]  
*The Policies card on a Role, with the count of assigned Policies in the header.*  

* **Policy count** - Number of Policies assigned
* **Policy names** - Clickable links to Policy details
* **Policy descriptions** - Quick reference
* **Warning badges** - For deleted Policies

## Best Practices

### Naming Conventions

Use clear, descriptive names that explain the Policy's purpose:

```text
✅ Good Names:
   Finance Admin Policy
   Europe Read-Only Access
   Operations Full Access
   Developer Test Environment

❌ Poor Names:
   Policy1
   Fin_Pol
   ADMIN
   Test
```

### Descriptive Documentation

Always provide a comprehensive Description:

```text
✅ Good Description:
   "Full administrative access to finance integrations, including 
    invoice processing, payment systems, and financial reporting. 
    Grants read/write/delete permissions in production environment."

❌ Poor Description:
   "Finance policy"
   "Admin access"
   ""
```

### Logical Grouping

Group related Claims together, with one value per key (see [The Conflicting Claims Problem][Understanding Claim Logic - Conflicting Claims]).

#### Department-Based Policy

```text
Policy: "Finance Department Access"
Claims:
  * department=finance
  * environment=production
  * access_level=editor
```

#### Functional Policy

```text
Policy: "Read-Only Monitoring"
Claims:
  * access_level=readonly
  * feature=monitoring
```

#### Regional Policy

```text
Policy: "European Operations"
Claims:
  * region=europe
  * department=operations
  * access_level=admin
```

### Reusability

Design Policies to be reusable across multiple [Roles][]:

```text
Policy: "Production Environment Access"
  * environment=production
  * compliance=validated

Assigned to Roles:
  * Finance Manager (with other finance Policies)
  * Operations Lead (with other operations Policies)
  * Senior Developer (with other developer Policies)
```

### Review Deleted Claims

If a Policy contains deleted Claims: Edit → Remove deleted Claims from **"Selected"** tab → Add replacements or restore.

## Understanding Claim Logic in Policies

>[!IMPORTANT]
>Claims in one Policy are combined with **AND**, and the Policies of a Role with **OR**. Adding a Claim makes a Policy more restrictive, and one Key with two values in one Policy can match no one. Read [Understanding Claim Logic in Policies][] before you change a Policy that is in use.

## Common Scenarios

More end-to-end examples are in [Claims and Policies - Common Scenarios][Common Scenarios].

### Scenario 1: Department-Based Access Control

```text
Policy: "Finance Department Access"
Claims: department=finance, access_level=editor

Policy: "Finance Admin Access"  
Claims: department=finance, access_level=admin

Policy: "Operations Department Access"
Claims: department=operations, access_level=editor
```

### Scenario 2: Multi-Permission Policies

```text
Policy: "European Finance Manager"
Claims:
  * department=finance, region=europe
  * access_level=admin, environment=production, feature=reporting
```

### Scenario 3: Environment Separation

One value per key, so development and test get separate Policies (OR logic on the Role):

```text
Policy: "Development Environment"
Claims: environment=development

Policy: "Test Environment"
Claims: environment=test

Policy: "Production Environment"
Claims: environment=production, compliance=validated
```

## Troubleshooting

More answers are in the [Access Management Troubleshooting][Troubleshooting Guide] guide and in [Troubleshooting OAuth 2.0 Validation Failures][].

### Cannot Create Policy - "Policy Name '…' is already in use"

**Issue:** Error when creating a Policy

**Solution:** Policy names must be unique, regardless of case and including deleted Policies. Either:

* Choose a different name
* Check if the Policy was deleted (restore it instead)
* Edit the existing Policy if it serves the same purpose

### Policy Shows Deleted Claims

**Issue:** Policy contains Claims with a **Deleted** badge

**Explanation:** The Policy was deleted with its Claims and restored later (a Claim an active Policy uses can't be deleted). It grants nothing until the deleted Claims are restored or removed.

#### Steps to Clean Up Deleted Claims

1. Edit the Policy
2. Go to the **"Selected"** tab
3. Uncheck the deleted Claims
4. Add replacement Claims from the **"All"** tab
5. Or restore the deleted Claims if still needed

### Cannot See Policy in Role

**Issue:** Created Policy not visible in [Role][Roles] editor

**Solution:** Check the Policy's **Roles** card and make sure the Role is checked and the Policy saved. Verify that the Policy isn't deleted, then refresh the page.

### Save Is Disabled

**Issue:** **Save** is disabled, with *You must select at least one Claim and at least one Role to be able to save the Policy.*

**Solution:** Select at least one Claim and at least one Role:

1. Stay on the Policy detail page
2. Use the **"All"** tab to add existing Claims, or the **"New"** tab to create one (**Add and Use**)
3. Tick at least one Role in the **Roles** card
4. Save the Policy

### A User Gets the Forbidden Page

**Issue:** After signing in, a user sees **Forbidden** (*403 - Forbidden*) with a reason such as *Access level **Log Views** is required*.

**Explanation:** The user's token matches no Policy, so the user has no Role. Compare the Claims with the token ([Entra ID Token Claims Validation][]); the page offers **Log out** so the user can sign in again or as someone else.

## Security Considerations

**Principle of Least Privilege** - Create specific Policies, not overly broad ones.

**Regular Audits** - Review quarterly: remove unused, update descriptions, verify Claims, check [Role][Roles] assignments, and review changes in [Log Audits][]. Policy changes are logged by the Web API with the Functions `cnfg_Policies_Insert`, `cnfg_Policies_Update`, `cnfg_Policies_Delete`, and `cnfg_Policies_Restore`; see [Audit Trail][Policy Audit Trail] for the log texts.

**Claim Validation** - Ensure Claims are: valid (not deleted), relevant, documented, following naming conventions.

## Quick Facts

* Policies are **named collections of [Claims][]**
* Available **only** in **OIDC/OAuth 2.0 mode**
* Policy names must be **unique** (not case-sensitive, deleted Policies included)
* Policies can be assigned to **multiple [Roles][]**
* A Policy needs **at least one Claim and one Role** before the Web Client saves it
* Changes reach signed-in users within **about 15 seconds**
* Deleted Policies can be **restored**, and their Roles get them back
* **Three tabs** for managing Claims: New, All, Selected
* Always provide a **Description** for clarity

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

* :fa-square-plus: [Add or manage Policy][]  
* :fa-users-class: [What is a Role?][Roles]  
* :fa-key: [What is a Claim?][Claims]  
* :fa-id-card: [Install Nodinite v7 - OpenID Connect][Install Nodinite v7 - OpenID]  

## :fa-link-horizontal: Related Topics

* :fa-shield-check: [Policies Overview][] - Manage all Policies  
* :fa-square-plus: [Add or manage Policy][] - Policy management guide  
* :fa-book: [Claims and Policies - Common Scenarios][Common Scenarios] - Implementation examples  

* :fa-key: [What is a Claim?][Claims] - Understanding Claims  
* :fa-key: [Claims Overview][] - Manage all Claims  
* :fa-square-plus: [Add or manage Claim][] - Claim management guide  

* :fa-users-class: [What is a Role?][Roles] - Understanding Roles  
* :fa-users-class: [Roles Overview][] - Manage all Roles  
* :fa-users-class: [Add or manage Role][] - See the Policies assigned to a Role  

* :fa-user-secret: [Access Management][] - Authorization overview  
* :fa-id-card: [Install Nodinite v7 - OpenID][] - Configure OIDC/OAuth 2.0  
* :fa-cloud: [Install Nodinite v7 - OpenID - EntraID][] - Azure AD setup  
* :fa-magnifying-glass: [Entra ID Token Claims Validation][] - Check the claims in the token  

* :fa-user: [Users][] - Windows authentication mode  
* :fab fa-windows: [Windows AD Groups][] - Windows authentication mode  
* :fa-right-left: [Migrate Authentication Method][] - Switch authentication mode  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyDetail.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PoliciesMenu.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/PolicyAllTab.png
[4]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Roles/PoliciesInRole.png
[7]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Policies/Policies_ClaimToRole.gif

[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 Policy]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Add%20or%20manage%20Policy.md
[Add or manage Role]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Add%20or%20manage%20Role.md
[Administration]:{ndr}/Administration/Overview.md
[Claims]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Features/What%20is%20a%20Claim.md
[Claims Overview]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Overview.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
[Install Nodinite v7 - OpenID - EntraID]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20-%20OpenID%20-%20EntraID.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Mapify]:{ndr}/Mapify/Overview.md
[Migrate Authentication Method]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Migrate%20Authentication%20Method.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[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 Overview]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Overview.md
[Policy Audit Trail]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Add%20or%20manage%20Policy.md#fa-user-tag-audit-trail
[Portal Auth]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Roles Overview]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Overview.md
[Show Deleted]:{ndr}/Administration/6.%20Tools/Show%20deleted%20records.md
[Troubleshooting Guide]:{ndr}/Administration/3.%20Access%20Management/Troubleshooting/Overview.md
[Troubleshooting OAuth 2.0 Validation Failures]:{ndr}/Install%20and%20Update/Troubleshooting/OAuth%202.0/Troubleshooting%20OAuth2%20Validation%20Failures.md
[Understanding Claim Logic - Conflicting Claims]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Understanding%20Claim%20Logic%20in%20Policies.md#the-conflicting-claims-problem
[Understanding Claim Logic - Empty Policy]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Understanding%20Claim%20Logic%20in%20Policies.md#empty-policy-detection
[Understanding Claim Logic in Policies]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Understanding%20Claim%20Logic%20in%20Policies.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
[Windows AD Groups - Mapify and Mermaid]:{ndr}/Administration/3.%20Access%20Management/3.%20Windows%20AD%20Groups/Features/What%20is%20a%20Windows%20AD%20Group.md#see-a-groups-relations-in-mapify-and-mermaid