---
title: "Claims and Policies Common Scenarios: Practical Implementation Examples"
description: Practical scenarios and examples for implementing Claims and Policies in Nodinite v7. Learn department-based access, regional authorization, role-based permissions, environment separation, compliance, and multi-tenant setups.
---

# Claims and Policies - Common Scenarios

Practical, real-world examples for implementing [Claims][] and [Policies][] in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 using OIDC/OAuth 2.0 authentication.

* ✅ Step-by-step implementation guides  
* ✅ Department-based access control examples  
* ✅ Multi-level permission scenarios  
* ✅ Regional and environmental authorization  

![Scenario 1, a Finance department Claim and the Finance User Policy with its Claims and Role, animated walkthrough (7.12)][1]  
*Animated walkthrough of Scenario 1: on **Claims**, **Add Claim** creates `department` = `finance` (`access_level` = `editor` from Step 2 is already there). **Add Policy** then creates the **Finance User Policy** with both Claims and the [Role][Roles] **Finance User**, and **Save** shows **Policy was successfully added**. It was recorded on a [Web Client][] in Windows mode, so it ends on the Policy's **Roles** card instead of the Role; see the note below.*  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>This guide is for <strong>OIDC/OAuth 2.0 mode only</strong>. For Windows authentication, see <a href="https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/">Users</a> and <a href="https://docs.nodinite.com/administration/access-management/windows-ad-groups/features/what-is-a-windows-ad-group/">Windows AD Groups</a>. In OIDC mode, the <a href="https://docs.nodinite.com/administration/access-management/overview/">Access Management</a> menu lists <strong>Claims</strong> and <strong>Policies</strong>, and a Role's page has a <strong>Policies</strong> card that lists the Policies on the Role. In Windows mode, the menu and the Role page show only <strong>Roles</strong>, <strong>Users</strong>, and <strong>Windows AD Groups</strong>.</p></div>
</aside>

## <i class="fal fa-diagram-project" aria-hidden="true"></i> How Every Scenario Works

Each scenario follows the same chain: the identity provider sends Claims, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> matches them against Policies, and a matching Policy gives the user its Roles. Within one Policy, **all** Claims must match (AND); across the Policies on a Role, **any** match is enough (OR). Never put two Claims with the same key in one Policy, since no user can have both values; see [Understanding Claim Logic in Policies][What is a Policy].

<div class="mermaid">
flowchart LR
    IDP["fa:fa-id-card Identity provider<br/>sends Claims"] --> C["fa:fa-key Claims<br/>key=value"]
    C -->|"all must match (AND)"| P["fa:fa-shield-check Policy"]
    P -->|"any Policy matches (OR)"| R["fa:fa-users-class Role"]
    R --> S["fa:fa-lock Permission sets<br/>Log, Monitor, Repository, C4"]
    style IDP fill:#9E59BB,color:#fff
    style C fill:#2678BD,color:#fff
    style P fill:#2678BD,color:#fff
    style R fill:#E47528,color:#fff
    style S fill:#3F827B,color:#fff
</div>

*Purple = the external identity provider, blue = Claims and Policies in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, orange = the Role, teal = what the Role grants.*

In every scenario, the last step is the same: give each Role its permission sets for [Log Views][Permission Set for Log Views], [Monitor Views][Permission Set for Monitor Views], the [Repository Model][Permission Set for the Repository Model], and [C4 Diagram Sets][Permission Set for C4 Diagram Sets].

---

## Scenario 1: Department-Based Access Control

**Goal:** Create separate access for Finance, Operations, and HR departments with different permission levels.

### Step 1: Create Department Claims

Navigate to **Administration** → **Access Management** → **Claims**, and create each Claim inline with **Add Claim**: fill in **Key**, **Value**, and **Description**, then **Save** (see [Add or manage Claim][]):

|Key|Value|Description|  
|---|---|---|  
|`department`|`finance`|Finance Department member|  
|`department`|`operations`|Operations Department member|  
|`department`|`hr`|Human Resources Department member|  

### Step 2: Create Access Level Claims

|Key|Value|Description|  
|---|---|---|  
|`access_level`|`readonly`|Read-only access|  
|`access_level`|`editor`|Read and edit access|  
|`access_level`|`admin`|Full administrative access|  

### Step 3: Create Department Policies

Navigate to **Administration** → **Access Management** → **Policies** and create each Policy with **Add Policy**. In the Policy editor, tick the Claims on the **Claims** card; its **All** and **Selected** tabs show every Claim or only the ticked ones. **Save** confirms with **Policy was successfully added** (see [Add or manage Policy][]):

#### Finance User Policy

* **Name:** `Finance User Policy`
* **Description:** `Standard user access for Finance Department`
* **Claims:**
  * `department=finance`
  * `access_level=editor`

#### Finance Admin Policy

* **Name:** `Finance Admin Policy`
* **Description:** `Administrative access for Finance Department`
* **Claims:**
  * `department=finance`
  * `access_level=admin`

#### Operations User Policy

* **Name:** `Operations User Policy`
* **Description:** `Standard user access for Operations Department`
* **Claims:**
  * `department=operations`
  * `access_level=editor`

#### HR Read-Only Policy

* **Name:** `HR Read-Only Policy`
* **Description:** `Read-only access for HR Department`
* **Claims:**
  * `department=hr`
  * `access_level=readonly`

### Step 4: Create Roles and Assign Policies

Create [Roles][] for each department, then tick the Role on the Policy's **Roles** card (tabs **All** and **Selected**). In OIDC mode the Role's own **Policies** card then lists the Policy:

* **Finance User** role → Assign `Finance User Policy`
* **Finance Manager** role → Assign `Finance Admin Policy`
* **Operations Team** role → Assign `Operations User Policy`
* **HR Viewer** role → Assign `HR Read-Only Policy`

### Result

Users authenticate through their identity provider with department Claims:

* Finance user with `department=finance` and `access_level=editor` gets Finance User role
* Operations user with `department=operations` gets Operations Team role access

---

## Scenario 2: Regional Authorization

**Goal:** Restrict access by geographic region for a global company with European, Americas, and Asia-Pacific operations.

### Step 1: Create Regional Claims

|Key|Value|Description|  
|---|---|---|  
|`region`|`europe`|European region access|  
|`region`|`americas`|Americas region access|  
|`region`|`apac`|Asia-Pacific region access|  
|`region`|`global`|Global/all regions access|  

### Step 2: Create Department Claims

|Key|Value|Description|  
|---|---|---|  
|`department`|`operations`|Operations Department|  
|`department`|`sales`|Sales Department|  

### Step 3: Create Regional Policies

#### European Operations Policy

* **Name:** `European Operations Policy`
* **Description:** `Operations access for European region`
* **Claims:**
  * `region=europe`
  * `department=operations`
  * `access_level=admin`

#### Americas Sales Policy

* **Name:** `Americas Sales Policy`
* **Description:** `Sales access for Americas region`
* **Claims:**
  * `region=americas`
  * `department=sales`
  * `access_level=editor`

#### Global Operations Policy

* **Name:** `Global Operations Policy`
* **Description:** `Operations access for all regions`
* **Claims:**
  * `region=global`
  * `department=operations`
  * `access_level=admin`

### Step 4: Create Regional Roles

* **Europe Operations** role → Assign `European Operations Policy`
* **Americas Sales** role → Assign `Americas Sales Policy`
* **Global Operations Manager** role → Assign `Global Operations Policy`

### Result

Users see only integrations and monitors for their assigned region(s).

---

## Scenario 3: Environment Separation (Dev/Test/Prod)

**Goal:** Separate access to Development, Test, and Production environments with strict controls on production.

### Step 1: Create Environment Claims

|Key|Value|Description|  
|---|---|---|  
|`environment`|`development`|Development environment|  
|`environment`|`test`|Test environment|  
|`environment`|`production`|Production environment|  

### Step 2: Create Role Claims

|Key|Value|Description|  
|---|---|---|  
|`role_type`|`developer`|Developer role type|  
|`role_type`|`tester`|QA/Tester role type|  
|`role_type`|`operations`|Operations team role type|  

### Step 3: Create Environment Policies

#### Developer Policies

A user has only one `environment` value at a time, so Dev and Test need one Policy each (OR between Policies):

* **Name:** `Developer Dev Access`
* **Description:** `Full access to the Development environment`
* **Claims:**
  * `role_type=developer`
  * `environment=development`
  * `access_level=admin`

* **Name:** `Developer Test Access`
* **Description:** `Full access to the Test environment`
* **Claims:**
  * `role_type=developer`
  * `environment=test`
  * `access_level=admin`

#### Tester Policy

* **Name:** `Tester Policy`
* **Description:** `Full access to Test environment only`
* **Claims:**
  * `role_type=tester`
  * `environment=test`
  * `access_level=editor`

#### Production Operations Policy

* **Name:** `Production Operations Policy`
* **Description:** `Full access to Production environment`
* **Claims:**
  * `role_type=operations`
  * `environment=production`
  * `access_level=admin`

#### Production Read-Only Policy

* **Name:** `Production Read-Only Policy`
* **Description:** `Read-only production access for developers`
* **Claims:**
  * `role_type=developer`
  * `environment=production`
  * `access_level=readonly`

### Step 4: Create Environment Roles

* **Developer** role → Assign `Developer Dev Access`, `Developer Test Access`, and `Production Read-Only Policy`
* **QA Tester** role → Assign `Tester Policy`
* **Operations Engineer** role → Assign `Production Operations Policy`

### Result

* Developers have full control in Dev/Test but read-only in Production
* QA has full access to Test only
* Operations has full Production access

---

## Scenario 4: Compliance and Audit Requirements

**Goal:** Meet compliance requirements with specific claims for audited systems and PCI compliance.

### Step 1: Create Compliance Claims

|Key|Value|Description|  
|---|---|---|  
|`compliance`|`pci-dss`|PCI-DSS compliant systems access|  
|`compliance`|`hipaa`|HIPAA compliant systems access|  
|`compliance`|`sox`|SOX compliant systems access|  
|`audit_access`|`enabled`|Access to audit trails|  
|`data_classification`|`confidential`|Confidential data access|  

### Step 2: Create Compliance Policies

#### PCI Compliance Admin Policy

* **Name:** `PCI Compliance Admin Policy`
* **Description:** `Administrative access to PCI-DSS compliant payment systems`
* **Claims:**
  * `compliance=pci-dss`
  * `department=finance`
  * `access_level=admin`
  * `data_classification=confidential`

#### Compliance Auditor Policy

* **Name:** `Compliance Auditor Policy`
* **Description:** `Read-only access for compliance auditors`
* **Claims:**
  * `audit_access=enabled`
  * `access_level=readonly`

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Don't add <code>compliance=pci-dss</code>, <code>compliance=hipaa</code>, and <code>compliance=sox</code> to the same Policy: they share a key, so no user could match. If auditors must be limited per regulation, create one auditor Policy per <code>compliance</code> value and assign them all to the Compliance Auditor Role.</p></div>
</aside>

### Step 3: Create Compliance Roles

* **PCI Administrator** role → Assign `PCI Compliance Admin Policy`
* **Compliance Auditor** role → Assign `Compliance Auditor Policy`

### Result

Only users with proper compliance Claims can access regulated systems.

---

## Scenario 5: Multi-Tenant Setup

**Goal:** Support multiple customers/tenants with isolated access in a shared Nodinite instance.

### Step 1: Create Tenant Claims

|Key|Value|Description|  
|---|---|---|  
|`tenant`|`customer-a`|Customer A tenant|  
|`tenant`|`customer-b`|Customer B tenant|  
|`tenant`|`customer-c`|Customer C tenant|  
|`tenant`|`internal`|Internal use tenant|  

### Step 2: Create Tenant-Specific Policies

#### Customer A Operations Policy

* **Name:** `Customer A Operations Policy`
* **Description:** `Operations access for Customer A`
* **Claims:**
  * `tenant=customer-a`
  * `department=operations`
  * `access_level=admin`

#### Customer A Business User Policy

* **Name:** `Customer A Business User Policy`
* **Description:** `Business user access for Customer A`
* **Claims:**
  * `tenant=customer-a`
  * `access_level=readonly`

#### Internal Admin Policy

* **Name:** `Internal Admin Policy`
* **Description:** `Administrative access to all tenants for internal staff`
* **Claims:**
  * `tenant=internal`
  * `access_level=admin`

### Step 3: Create Tenant Roles

* **Customer A Ops** role → Assign `Customer A Operations Policy`
* **Customer A User** role → Assign `Customer A Business User Policy`
* **Internal Administrator** role → Assign `Internal Admin Policy`

### Result

Each tenant sees only their own integrations and data.

---

## Scenario 6: Migrating from Windows to OIDC

**Goal:** Transition from Windows authentication (Users/Groups) to OIDC/OAuth 2.0 (Claims/Policies).

### Step 1: Document Current Windows Setup

Map your existing Windows AD Groups to Claims:

|Windows AD Group|Maps To Claims|  
|---|---|  
|`SE_Finance_Team`|`department=finance`, `access_level=editor`|  
|`SE_Finance_Managers`|`department=finance`, `access_level=admin`|  
|`SE_IT_Operations`|`department=it`, `access_level=admin`, `environment=production`|  
|`Global_Developers`|`role_type=developer`|  

### Step 2: Create Equivalent Claims

Create Claims that represent your Windows Group permissions:

|Key|Value|Description|  
|---|---|---|  
|`department`|`finance`|Replaces SE_Finance_Team group|  
|`department`|`it`|Replaces SE_IT_Operations group|  
|`access_level`|`editor`|Standard user permissions|  
|`access_level`|`admin`|Admin permissions|  
|`role_type`|`developer`|Developer role|  
|`environment`|`production`|Production access|  
|`environment`|`development`|Dev environment|  
|`environment`|`test`|Test environment|  

### Step 3: Create Policies Matching Windows Groups

#### Finance Team Policy

* **Name:** `Finance Team Policy`
* **Description:** `Replaces SE_Finance_Team Windows group`
* **Claims:**
  * `department=finance`
  * `access_level=editor`

#### IT Operations Policy

* **Name:** `IT Operations Policy`
* **Description:** `Replaces SE_IT_Operations Windows group`
* **Claims:**
  * `department=it`
  * `access_level=admin`
  * `environment=production`

#### Developers Policy

* **Name:** `Developers Policy`
* **Description:** `Replaces Global_Developers Windows group`
* **Claims:**
  * `role_type=developer`

### Step 4: Configure Identity Provider

In your identity provider (Azure AD, Okta, etc.):

1. Map Windows group memberships to Claims
2. Configure claim transformation rules
3. Test with pilot users

### Step 5: Update Nodinite Configuration

1. Switch authentication mode to OIDC/OAuth 2.0 (see [Install Nodinite v7 - OpenID][])
2. Assign Policies to existing Roles
3. Test access with pilot users
4. Roll out to all users

### Step 6: Decommission Windows Authentication

Once verified:

1. Remove Windows Users from Roles
2. Remove Windows AD Groups from Roles
3. Document the new Claims/Policies structure

---

## Scenario 7: Dynamic Permissions Based on Time

**Goal:** Grant temporary elevated permissions for on-call staff.

### Step 1: Create On-Call Claims

|Key|Value|Description|  
|---|---|---|  
|`oncall_status`|`active`|Currently on call|  
|`oncall_status`|`inactive`|Not on call|  
|`shift`|`weekday`|Weekday shift|  
|`shift`|`weekend`|Weekend shift|  

### Step 2: Create On-Call Policies

#### On-Call Administrator Policy

* **Name:** `On-Call Administrator Policy`
* **Description:** `Elevated permissions for on-call staff`
* **Claims:**
  * `oncall_status=active`
  * `access_level=admin`
  * `environment=production`

#### Standard Operations Policy

* **Name:** `Standard Operations Policy`
* **Description:** `Normal operations permissions`
* **Claims:**
  * `department=operations`
  * `access_level=editor`

### Step 3: Configure Identity Provider

In your identity provider:

1. Set up automated processes to add/remove `oncall_status=active` Claim
2. Based on on-call schedule, dynamically assign Claims
3. User gets elevated permissions only when on call

### Result

Users get elevated permissions during their on-call shift. The change isn't instant: Claims come from the user's token at sign-in, so a Claim added or removed in the identity provider takes effect at the user's next sign-in or token refresh. After that, the [Web API][] can keep the user's old Roles, Policies, and Claims cached for up to 15 seconds.

---

## Best Practices Across All Scenarios

### Naming Conventions

#### Recommended Naming

* Use lowercase for consistency
* Use underscores for multi-word keys: `access_level`, `role_type`
* Be descriptive: `department`, `region`, `environment`

#### Naming to Avoid

* Mixed case: `AccessLevel`, `Dept`
* Abbreviations: `env`, `rgn`
* Special characters: `access-level`, `role.type`

### Claim Design

* **Start specific, not broad:** Begin with granular Claims, combine into Policies
* **Keep Claims atomic:** Each Claim represents one thing
* **Document everything:** Use Description fields extensively

### Policy Organization

* **Group logically:** Department-based, role-based, or function-based
* **Reuse Policies:** Design Policies to be assigned to multiple Roles
* **Clear naming:** Policy names should explain their purpose

### Testing

1. **Test with pilot users** before full rollout
2. **Verify Claim matching** - ensure users receive correct Claims from identity provider
3. **Check permission inheritance** - verify Role assignments work correctly
4. **Document test results** for audit purposes

### Security

* **Principle of least privilege:** Grant minimum necessary permissions
* **Regular audits:** Review Claims, Policies, and Role assignments quarterly
* **Monitor access:** Use [Log Audits][] to track permission changes
* **When something goes wrong:** follow [Troubleshooting Claims and Policies][Access Management Troubleshooting]
* **Separate environments:** Different Policies for Dev, Test, Production

---

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-key" aria-hidden="true"></i> [Add or manage Claim][] - Create Claims  
<i class="fal fa-shield-check" aria-hidden="true"></i> [Add or manage Policy][] - Create Policies  
<i class="fal fa-users-class" aria-hidden="true"></i> [Add or manage Role][] - Assign Policies to Roles  
<i class="fal fa-id-card" aria-hidden="true"></i> [Install Nodinite v7 - OpenID][] - Configure OIDC/OAuth 2.0  
<i class="fal fa-wrench" aria-hidden="true"></i> [Troubleshooting Claims and Policies][Access Management Troubleshooting]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<i class="fal fa-key" aria-hidden="true"></i> [What is a Claim?][Claims]  
<i class="fal fa-shield-check" aria-hidden="true"></i> [What is a Policy?][Policies]  
<i class="fal fa-users-class" aria-hidden="true"></i> [What is a Role?][Roles]  
<i class="fal fa-user-secret" aria-hidden="true"></i> [Access Management][]  
<i class="fal fa-cloud" aria-hidden="true"></i> [Install Nodinite v7 - OpenID - EntraID][]  
<i class="fal fa-hard-drive" aria-hidden="true"></i> [Permission Set for Log Views][]  
<i class="fal fa-display" aria-hidden="true"></i> [Permission Set for Monitor Views][]  
<i class="fal fa-sitemap" aria-hidden="true"></i> [Permission Set for the Repository Model][]  
<i class="fal fa-layer-group" aria-hidden="true"></i> [Permission Set for C4 Diagram Sets][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Authorization/AccessScenario_Department.gif

[Access Management]:https://docs.nodinite.com/administration/access-management/overview/
[Access Management Troubleshooting]:https://docs.nodinite.com/administration/access-management/troubleshooting/overview/
[Add or manage Claim]:https://docs.nodinite.com/administration/access-management/claims/features/add-or-manage-claim/
[Add or manage Policy]:https://docs.nodinite.com/administration/access-management/policies/features/add-or-manage-policy/
[Add or manage Role]:https://docs.nodinite.com/administration/access-management/roles/features/add-or-manage-role/
[Claims]:https://docs.nodinite.com/administration/access-management/claims/features/what-is-a-claim/
[Install Nodinite v7 - OpenID]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-openid/
[Install Nodinite v7 - OpenID - EntraID]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-openid-entraid/
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Permission Set for C4 Diagram Sets]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-c4-diagram-sets/
[Permission Set for Log Views]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/
[Permission Set for Monitor Views]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-monitor-views/
[Permission Set for the Repository Model]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-the-repository-model/
[Policies]:https://docs.nodinite.com/administration/access-management/policies/features/what-is-a-policy/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[What is a Policy]:https://docs.nodinite.com/administration/access-management/policies/features/what-is-a-policy/
[Windows AD Groups]:https://docs.nodinite.com/administration/access-management/windows-ad-groups/features/what-is-a-windows-ad-group/