---
title: What is a Claim? Authorization Building Blocks in Nodinite OIDC/OAuth 2.0
description: "Understand how Claims work in Nodinite's OIDC/OAuth 2.0 authorization model. Learn how key/value pairs from the identity provider token are grouped into Policies and assigned to Roles, with Microsoft Entra ID App Roles and Security Groups examples."
---

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

# What is a Claim?

Unlock flexible, cross-platform authorization in :Nodinite: v7 by understanding Claims. This page explains how Claims provide the foundation for modern authorization when using OIDC/OAuth 2.0 authentication mode.

* ✅ Platform-independent authorization model  
* ✅ Flexible key/value pairs for any permission structure  
* ✅ Works with external identity providers  
* ✅ Foundation for Policy-based access control  

![Show in Mapify on the Claim role = Contoso.Finance.Read: the Claim and the Policy that uses it, Contoso: Finance Access, animated walkthrough (7.12)][3]  
*Animated walkthrough: a Claim in context. **Show in Mapify** in [Mapify][] draws the Claim and the Policy that uses it, at depth 1. Raise **Depth** to add the [Role][Roles] the Policy grants and what that Role reaches.*  

>[!NOTE]
>Claims 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-square-plus: Get started now: [Add or manage Claim][] user guide.

## What is a Claim?

A **Claim** in :Nodinite: is a **key/value pair** that represents a specific permission, attribute, or characteristic used for authorization. Claims are the fundamental building blocks of the OIDC/OAuth 2.0 authorization model in [Access Management][].

### Example Claims

|Key|Value|Description|  
|---|---|---|  
|`department`|`finance`|Finance Department member|  
|`department`|`operations`|Operations Department member|  
|`access_level`|`admin`|Administrator access level|  
|`access_level`|`readonly`|Read-only access level|  
|`region`|`europe`|European region|  
|`http://schemas.microsoft.com/ws/2008/06/identity/claims/role`|`developer`|Developer role (a token's `role` or `roles` claim; see [How the Key is matched](#fa-right-left-how-the-key-is-matched))|  

![Claims Overview list with the filter box, the Include deleted checkbox, and nine Contoso sample Claims with their Used In Policy badges][1]  
*The Claims management page in the :Nodinite: [Web Client][], where the 'Used In' column shows the Policy that uses each Claim.*  

## Authorization Flow with Claims

Understanding how Claims fit into the authorization model:

1. **Claims** - Individual key/value pairs (e.g., `department=finance`)
2. [Policies][] - Groups of related Claims (e.g., "Finance Access Policy"); a user must match all Claims in a Policy
3. [Roles][] - Assigned Policies to grant permissions (e.g., "Finance User" role)
4. **Users** - Authenticated via identity provider, receive Claims in their token
5. **Authorization** - :Nodinite: matches user Claims with Policy requirements

```mermaid
flowchart LR
    A["fa:fa-user User authenticates"] --> B["fa:fa-id-card Identity Provider"]
    B --> C["fa:fa-key Returns Claims<br/>in the token"]
    C --> D["fa:fa-shield-halved Claims match Policy"]
    D --> E["fa:fa-users-class Policy assigned to Role"]
    E --> F["fa:fa-unlock User granted access"]
    style A fill:#2678BD,color:#fff
    style B fill:#FFD525,color:#000
    style C fill:#93d16d,color:#000
    style D fill:#93d16d,color:#000
    style E fill:#93d16d,color:#000
    style F fill:#93d16d,color:#000
```

*Blue: the user signing in; yellow: the external identity provider; green: the :Nodinite: matching steps that end in granted access.*

What a Role then grants is set in its permission sets: [Log Views][Permission Set for Log Views], [Monitor Views][Permission Set for Monitor Views], [Repository Model][Permission Set for the Repository Model], and [C4 Diagram Sets][Permission Set for C4 Diagram Sets].

## Key Characteristics

### Unique Key/Value Combinations

The **combination** of Key and Value must be unique across all Claims:

* ✅ **Allowed:** `department=finance` and `department=hr` (different values)
* ✅ **Allowed:** `access_level=admin` and `region=admin` (different keys)
* ❌ **Not allowed:** Two Claims with `department=finance`, even when one of them is deleted (restore it instead)

### Case Sensitivity

Claims are **case-insensitive**:

* `Department=Finance` and `department=finance` are the same Claim, so you can't add both
* At sign-in, Key and Value are compared without case, after trimming spaces: `department=Finance` matches a token with `department=finance`

>[!TIP]
>Even so, use the spelling your identity provider puts in the token, and consistent lowercase naming for your own Keys, so the list stays readable.

### :fa-right-left: How the Key is matched

The [Web API][] matches Claims on every request, against the access token the [Web Client][] forwards. Before it compares, .NET renames some standard claim types, so the **Key** you enter is the claim type **after** that mapping, for every identity provider, not only Microsoft Entra ID:

|In the token|Key to enter in :Nodinite:|  
|---|---|  
|`roles`, `role`|`http://schemas.microsoft.com/ws/2008/06/identity/claims/role`|  
|`group` (singular)|`http://schemas.xmlsoap.org/claims/Group`|  
|`email`|`http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress`|  
|`sub`|`http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier`|  
|`groups`, `Group`, `email_verified`, custom names|unchanged|  

A Claim with the Key `roles` therefore never matches. More rules:

* **Multi-valued claims** - Each value of an array claim (such as `roles` or `groups`) counts on its own; one matching value is enough.
* **AND within a Policy, OR across Policies** - A user must match all Claims of a [Policy][Policies]; every matching Policy gives its [Roles][].
* **About 15 seconds** - The Web API keeps each user's Policy and Role graph for 15 seconds, so a Claim or Policy change reaches signed-in users quickly, without a new sign-in.

### Source of Claims

Claims can originate from:

1. **Identity Provider** - The values always come from the token your OIDC provider issues (Microsoft Entra ID, Keycloak, Okta, and so on)
2. **:Nodinite: Configuration** - The Claims you define in :Nodinite: (in the [Claims Overview][], or in the [Nodinite Claims][Portal Nodinite Claims] block of the Portal Auth step at installation) are only **requirements**: :Nodinite: adds no claims to a user, so a Claim matches only when the token carries it

## Claim Management

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

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

### Available Operations

* :fa-square-plus: [Add new Claim][Add or manage Claim] - Create Claims inline
* :fa-edit: [Edit Claim][Add or manage Claim] - Modify Key, Value, or Description
* :fa-trash-can: Delete Claim - Remove Claims (can be restored)
* :fa-redo: Restore Claim - Recover deleted Claims ([Include deleted][Show Deleted])
* :fa-filter: Filter Claims - Search by Key or Value
* :fa-diagram-project: Show in [Mapify][] - See the Policies, Roles, and views a Claim connects to
* :fa-eye: View Usage - See which [Policies][] use each Claim

## Claims vs. Users/Groups

### OIDC/OAuth 2.0 Mode (Claims)

#### Advantages of Claims

* Platform-independent (works with any identity provider)
* Flexible key/value structure
* Cloud-native and modern
* Supports external identity providers

#### When to Use Claims

* Cloud-based deployments
* Multi-platform environments
* Integration with Microsoft Entra ID, Okta, Auth0, etc.
* Need modern authentication protocols

### Windows Authentication Mode (Users/Groups)

#### Advantages of Users and Groups

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

#### 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][]/[Windows AD Groups][]) **or** OIDC/OAuth 2.0 (Claims/[Policies][]), chosen in the [Auth step][Portal Auth] at installation. To switch, see [Migrate Authentication Method][].

## Best Practices

### Naming Conventions

Use clear, consistent naming:

```text
✅ Good Examples:
   department=finance
   access_level=admin
   region=europe
   environment=production

❌ Poor Examples:
   Dept=Fin
   LVL=1
   EU=yes
```

### Descriptive Documentation

Always provide a **Description** for each Claim:

* Explains the purpose of the Claim
* Helps other administrators understand usage
* Documents business logic

#### Example: A Documented Claim

* **Key:** `department`
* **Value:** `finance`
* **Description:** "Member of the Finance Department - grants access to financial integrations and reporting"

### Logical Grouping

Plan Claims that will be grouped into [Policies][]. Use one value per key in each Policy; see [The Conflicting Claims Problem][Conflicting Claims].

#### Finance Access Policy

* `department=finance`
* `access_level=readonly`
* `region=europe`

#### Finance Admin Policy

* `department=finance`
* `access_level=admin`
* `region=all`

### Review Before Deletion

Before deleting a Claim:

1. Check the **"Used In"** column - shows which [Policies][] reference this Claim
2. Consider the impact on existing [Policies][]
3. A Claim that an active Policy uses can't be deleted :new7.12:: the **Confirm intent to Delete** dialog lists those Policies and its **Yes** is disabled
4. Can be restored if needed

>[!CAUTION]
>Replace the Claim on every Policy that uses it before you delete it; a Policy needs at least one Claim to be saved. See [Claim Can't Be Deleted - Used in Policies][Troubleshooting - Claim used in Policies].

## Common Scenarios

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

### Department-Based Access

```text
Claim 1: department=finance
Claim 2: department=operations
Claim 3: department=hr

Policy "Finance Access":
  * Contains: department=finance

Policy "Operations Access":
  * Contains: department=operations
```

### Multi-Level Permissions

```text
Claim 1: access_level=readonly
Claim 2: access_level=editor
Claim 3: access_level=admin

Policy "Read Access":
  * Contains: access_level=readonly

Policy "Full Access":
  * Contains: access_level=admin
  * Contains: department=it
```

### Regional Authorization

```text
Claim 1: region=europe
Claim 2: region=americas
Claim 3: region=asia

Policy "European Integration Access":
  * Contains: region=europe
  * Contains: access_level=editor
```

## Integration with Identity Provider

When using external identity providers, the Key and Value of a :Nodinite: Claim must match the claim in the token, with the Key as .NET maps it ([How the Key is matched](#fa-right-left-how-the-key-is-matched)). The [OpenID Field Mapping Quick Reference][] maps the installer fields to your identity provider.

### Azure AD (Entra ID)

Azure AD includes claims in the JWT access token automatically. The **token key name** you must use in :Nodinite: depends on how you have configured Azure AD — App Roles or Security Groups. These are two different approaches and the token key names differ between them.

>[!TIP]
>App Roles are the recommended approach for :Nodinite:. They produce compact, readable claim values and avoid the token-size issues that occur when users belong to many Security Groups. See [Register Nodinite Applications in Azure AD][Install Nodinite v7 - OpenID - EntraID] for how to create the App Roles.

#### Approach 1: App Roles (Recommended)

When a user is assigned an App Role in Azure AD (e.g., `Nodinite.Admin`), Azure AD adds a `roles` claim to the token:

```json
{
  "roles": ["Nodinite.Admin"]
}
```

The token carries the App Roles as `roles`, but :Nodinite: matches them on the standard role claim type. To map this to :Nodinite:, create one Claim per App Role value:

| Key | Value | Description |
|---|---|---|
| `http://schemas.microsoft.com/ws/2008/06/identity/claims/role` | `Nodinite.Admin` | IT administrator — full access |
| `http://schemas.microsoft.com/ws/2008/06/identity/claims/role` | `Nodinite.User` | Standard user |
| `http://schemas.microsoft.com/ws/2008/06/identity/claims/role` | `Nodinite.ReadOnly` | Read-only access |

The **Key** is always `http://schemas.microsoft.com/ws/2008/06/identity/claims/role`. A Claim with the bare key `roles` or `role` doesn't match. The **Value** is the **App Role value** you defined when creating the App Role in the Azure AD App Registration, one value per Claim: comma-separated values aren't supported.

#### Approach 2: Security Groups

When you configure Azure AD to include group membership in the token (optional token claim), Azure AD adds a `groups` claim containing the Group's **Object ID** (a GUID):

```json
{
  "groups": ["a1b2c3d4-0000-0000-0000-111122223333"]
}
```

To map this to :Nodinite:, create a Claim with:

| Key | Value | Description |
|---|---|---|
| `groups` | `a1b2c3d4-0000-0000-0000-111122223333` | Finance team AD group |

>[!IMPORTANT]
>The Value must be the Group **Object ID** (GUID), not the Group display name. Copy the Object ID from **Microsoft Entra ID → Groups → [your group] → Overview**.

#### End-to-End Example: App Roles → Claims → Policies → Roles

This table shows the complete chain from Azure AD to :Nodinite: access control (role URI = `http://schemas.microsoft.com/ws/2008/06/identity/claims/role`):

| Azure AD App Role | Token claim in JWT | :Nodinite: Claim (Key=Value) | Example Policy | Example :Nodinite: Role |
|---|---|---|---|---|
| `Nodinite.Admin` | `roles=Nodinite.Admin` | role URI = `Nodinite.Admin` | IT Admin Policy | Administrators |
| `Nodinite.User` | `roles=Nodinite.User` | role URI = `Nodinite.User` | Standard User Policy | Users |
| `Nodinite.ReadOnly` | `roles=Nodinite.ReadOnly` | role URI = `Nodinite.ReadOnly` | Read-Only Policy | Viewers |

For fine-grained access (e.g., Finance vs HR), keep the Azure AD App Roles coarse (doorman) and use additional :Nodinite: Claims to represent business-domain membership:

| Azure AD source | Token claim in JWT | :Nodinite: Claim (Key=Value) | Combined in Policy |
|---|---|---|---|
| App Role `Nodinite.User` | `roles=Nodinite.User` | role URI = `Nodinite.User` | Finance Full Access Policy |
| Security Group (Finance) | `groups=<Finance GUID>` | `groups` = `<Finance GUID>` | Finance Full Access Policy |

A user satisfies the **Finance Full Access Policy** only when their token contains **both** claims — they must be a `Nodinite.User` **AND** a member of the Finance group. This is the AND logic that [Policies][] enforce.

See [Register Nodinite Applications in Azure AD][Install Nodinite v7 - OpenID - EntraID] for how to create the App Roles, and [What is a Policy?][Policies] for how AND logic works in policies. If users don't get the expected access, see [Entra ID Token Claims Validation][].

### Other OIDC Providers

Configure claim mapping in your identity provider:

* Okta custom claims
* Auth0 user metadata
* Custom OIDC provider attributes

The principle is the same — check what key name the provider uses in the JWT token, map it with the [table above](#fa-right-left-how-the-key-is-matched) (`roles`, `role`, `group`, `email` and `sub` are renamed), then create a :Nodinite: Claim with that key and the expected value.

## Troubleshooting

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

### Cannot Create Duplicate Claim

**Issue:** *This Key/Value combination is already in use* when creating a Claim

**Solution:** This Key/Value combination already exists. Either:

* Use the existing Claim in your [Policy][Policies]
* Choose a different Key or Value
* Check if the Claim was deleted (enable the "Include deleted" filter)

### Claim Not Appearing for Users

**Issue:** User doesn't have expected permissions despite Claim configuration

#### What to Check

1. Is the Claim included in a [Policy][Policies]?
2. Is the [Policy][Policies] assigned to a [Role][Roles]?
3. Does the user match all Claims in that Policy?
4. Does the user's identity provider provide this Claim ([Entra ID Token Claims Validation][])?
5. Is the Key the mapped claim type (for example the long role URI, not `roles`)? See [How the Key is matched](#fa-right-left-how-the-key-is-matched).
6. Is a Claim of the Policy deleted? A Policy with a deleted Claim matches nobody until the Claim is restored or removed from the Policy.

### Deleted Claim Still Visible in Policy

**Issue:** Deleted Claim appears in [Policies][] with a **Deleted** badge

**Why** - It happens only when a Policy was deleted together with the Claim and restored afterwards, because a Claim that an active Policy uses can't be deleted. While the Claim is deleted, the Policy grants nothing, so resolve it soon.

#### How to Resolve

1. Edit the [Policy][Policies] to remove the deleted Claim
2. Add a replacement Claim if needed
3. Or restore the deleted Claim if still required

## Security Considerations

### Principle of Least Privilege

Create specific Claims for granular permissions:

```text
✅ Specific:
   department=finance
   access_level=readonly
   view=invoices

❌ Too broad:
   access=all
   permission=everything
```

### Regular Audits

* Review Claims periodically
* Remove unused Claims
* Update descriptions
* Verify Policy assignments
* Review changes in [Log Audits][]

### Claim Validation

When users authenticate:

* :Nodinite: validates Claim keys and values
* Case-insensitive matching, after trimming spaces
* The whole Key and Value must match
* No partial matching

## Quick Facts

* Claims are **key/value pairs** used for authorization
* Available **only** in **OIDC/OAuth 2.0 mode**
* Key/Value combination must be **unique**, deleted Claims included
* Claims are **case-insensitive**
* The Key is the claim type **after .NET's mapping** (`roles` becomes the long role URI)
* Claims are grouped into [Policies][]
* [Policies][] are assigned to [Roles][]
* Values come from the **identity provider**; Claims **defined in :Nodinite:** are requirements
* Deleted Claims can be **restored**
* Always provide a **Description** for clarity

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

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

## :fa-link-horizontal: Related Topics

* :fa-key: [Claims Overview][] - Manage all Claims  
* :fa-shield-check: [Policies][] - Group Claims into Policies  
* :fa-shield-check: [Policies Overview][] - Manage all Policies  
* :fa-users-class: [Roles][] - Assign Policies to Roles  
* :fa-users-class: [Roles Overview][] - Manage all Roles  
* :fa-book: [Claims and Policies - Common Scenarios][Common Scenarios] - Implementation examples  
* :fa-id-card: [Install Nodinite v7 - OpenID][] - Configure OIDC/OAuth 2.0  
* :fa-cloud: [Install Nodinite v7 - OpenID - EntraID][] - Azure AD setup  
* :fa-table: [OpenID Field Mapping Quick Reference][] - Map installer fields to your identity provider  
* :fa-id-card: [Auth step in the Portal][Portal Auth] - Authentication mode and Nodinite Claims  
* :fa-magnifying-glass: [Entra ID Token Claims Validation][] - Check the claims in the token  
* :fa-users: [Add Users and Claims in Keycloak][Keycloak Users] - Claims and Policies in the Docker sandbox  
* :fa-user-secret: [Access Management][] - Overview of authorization  
* :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/Claims/Overview.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Claims/ClaimsMenu.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Authorization/Claims/Claims_ShowInMapify.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
[Administration]:{ndr}/Administration/Overview.md
[Claims Overview]:{ndr}/Administration/3.%20Access%20Management/4.%20Claims/Overview.md
[Common Scenarios]:{ndr}/Administration/3.%20Access%20Management/Getting%20Started/Common%20Scenarios.md
[Conflicting Claims]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/Understanding%20Claim%20Logic%20in%20Policies.md#the-conflicting-claims-problem
[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
[Keycloak Users]:{ndr}/Install%20and%20Update/Troubleshooting/Docker/Add%20Users%20and%20Claims%20in%20Keycloak.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Mapify]:{ndr}/Mapify/Overview.md
[Migrate Authentication Method]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Migrate%20Authentication%20Method.md
[OpenID Field Mapping Quick Reference]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/OpenID%20Field%20Mapping%20Quick%20Reference.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]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Features/What%20is%20a%20Policy.md
[Policies Overview]:{ndr}/Administration/3.%20Access%20Management/5.%20Policies/Overview.md
[Portal Auth]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md
[Portal Nodinite Claims]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#nodinite-claims
[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 - Claim used in Policies]:{ndr}/Administration/3.%20Access%20Management/Troubleshooting/Overview.md#cannot-delete-claim-used-in-policies
[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
[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