Claims and Policies - Common Scenarios
Section titled “Claims and Policies - Common Scenarios”Practical, real-world examples for implementing Claims and Policies in Nodinite 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

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 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.
How Every Scenario Works
Section titled “ How Every Scenario Works”Each scenario follows the same chain: the identity provider sends Claims, Nodinite 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.
sends Claims"] --> C["fa:fa-key Claims
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
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
Purple = the external identity provider, blue = Claims and Policies in Nodinite, 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, Monitor Views, the Repository Model, and C4 Diagram Sets.
Scenario 1: Department-Based Access Control
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “Finance User Policy”- Name:
Finance User Policy - Description:
Standard user access for Finance Department - Claims:
department=financeaccess_level=editor
Finance Admin Policy
Section titled “Finance Admin Policy”- Name:
Finance Admin Policy - Description:
Administrative access for Finance Department - Claims:
department=financeaccess_level=admin
Operations User Policy
Section titled “Operations User Policy”- Name:
Operations User Policy - Description:
Standard user access for Operations Department - Claims:
department=operationsaccess_level=editor
HR Read-Only Policy
Section titled “HR Read-Only Policy”- Name:
HR Read-Only Policy - Description:
Read-only access for HR Department - Claims:
department=hraccess_level=readonly
Step 4: Create Roles and Assign Policies
Section titled “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
Section titled “Result”Users authenticate through their identity provider with department Claims:
- Finance user with
department=financeandaccess_level=editorgets Finance User role - Operations user with
department=operationsgets Operations Team role access
Scenario 2: Regional Authorization
Section titled “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
Section titled “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
Section titled “Step 2: Create Department Claims”| Key | Value | Description |
|---|---|---|
department |
operations |
Operations Department |
department |
sales |
Sales Department |
Step 3: Create Regional Policies
Section titled “Step 3: Create Regional Policies”European Operations Policy
Section titled “European Operations Policy”- Name:
European Operations Policy - Description:
Operations access for European region - Claims:
region=europedepartment=operationsaccess_level=admin
Americas Sales Policy
Section titled “Americas Sales Policy”- Name:
Americas Sales Policy - Description:
Sales access for Americas region - Claims:
region=americasdepartment=salesaccess_level=editor
Global Operations Policy
Section titled “Global Operations Policy”- Name:
Global Operations Policy - Description:
Operations access for all regions - Claims:
region=globaldepartment=operationsaccess_level=admin
Step 4: Create Regional Roles
Section titled “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
Section titled “Result”Users see only integrations and monitors for their assigned region(s).
Scenario 3: Environment Separation (Dev/Test/Prod)
Section titled “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
Section titled “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
Section titled “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
Section titled “Step 3: Create Environment Policies”Developer Policies
Section titled “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=developerenvironment=developmentaccess_level=admin
-
Name:
Developer Test Access -
Description:
Full access to the Test environment -
Claims:
role_type=developerenvironment=testaccess_level=admin
Tester Policy
Section titled “Tester Policy”- Name:
Tester Policy - Description:
Full access to Test environment only - Claims:
role_type=testerenvironment=testaccess_level=editor
Production Operations Policy
Section titled “Production Operations Policy”- Name:
Production Operations Policy - Description:
Full access to Production environment - Claims:
role_type=operationsenvironment=productionaccess_level=admin
Production Read-Only Policy
Section titled “Production Read-Only Policy”- Name:
Production Read-Only Policy - Description:
Read-only production access for developers - Claims:
role_type=developerenvironment=productionaccess_level=readonly
Step 4: Create Environment Roles
Section titled “Step 4: Create Environment Roles”- Developer role → Assign
Developer Dev Access,Developer Test Access, andProduction Read-Only Policy - QA Tester role → Assign
Tester Policy - Operations Engineer role → Assign
Production Operations Policy
Result
Section titled “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
Section titled “Scenario 4: Compliance and Audit Requirements”Goal: Meet compliance requirements with specific claims for audited systems and PCI compliance.
Step 1: Create Compliance Claims
Section titled “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
Section titled “Step 2: Create Compliance Policies”PCI Compliance Admin Policy
Section titled “PCI Compliance Admin Policy”- Name:
PCI Compliance Admin Policy - Description:
Administrative access to PCI-DSS compliant payment systems - Claims:
compliance=pci-dssdepartment=financeaccess_level=admindata_classification=confidential
Compliance Auditor Policy
Section titled “Compliance Auditor Policy”- Name:
Compliance Auditor Policy - Description:
Read-only access for compliance auditors - Claims:
audit_access=enabledaccess_level=readonly
Step 3: Create Compliance Roles
Section titled “Step 3: Create Compliance Roles”- PCI Administrator role → Assign
PCI Compliance Admin Policy - Compliance Auditor role → Assign
Compliance Auditor Policy
Result
Section titled “Result”Only users with proper compliance Claims can access regulated systems.
Scenario 5: Multi-Tenant Setup
Section titled “Scenario 5: Multi-Tenant Setup”Goal: Support multiple customers/tenants with isolated access in a shared Nodinite instance.
Step 1: Create Tenant Claims
Section titled “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
Section titled “Step 2: Create Tenant-Specific Policies”Customer A Operations Policy
Section titled “Customer A Operations Policy”- Name:
Customer A Operations Policy - Description:
Operations access for Customer A - Claims:
tenant=customer-adepartment=operationsaccess_level=admin
Customer A Business User Policy
Section titled “Customer A Business User Policy”- Name:
Customer A Business User Policy - Description:
Business user access for Customer A - Claims:
tenant=customer-aaccess_level=readonly
Internal Admin Policy
Section titled “Internal Admin Policy”- Name:
Internal Admin Policy - Description:
Administrative access to all tenants for internal staff - Claims:
tenant=internalaccess_level=admin
Step 3: Create Tenant Roles
Section titled “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
Section titled “Result”Each tenant sees only their own integrations and data.
Scenario 6: Migrating from Windows to OIDC
Section titled “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
Section titled “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
Section titled “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
Section titled “Step 3: Create Policies Matching Windows Groups”Finance Team Policy
Section titled “Finance Team Policy”- Name:
Finance Team Policy - Description:
Replaces SE_Finance_Team Windows group - Claims:
department=financeaccess_level=editor
IT Operations Policy
Section titled “IT Operations Policy”- Name:
IT Operations Policy - Description:
Replaces SE_IT_Operations Windows group - Claims:
department=itaccess_level=adminenvironment=production
Developers Policy
Section titled “Developers Policy”- Name:
Developers Policy - Description:
Replaces Global_Developers Windows group - Claims:
role_type=developer
Step 4: Configure Identity Provider
Section titled “Step 4: Configure Identity Provider”In your identity provider (Azure AD, Okta, etc.):
- Map Windows group memberships to Claims
- Configure claim transformation rules
- Test with pilot users
Step 5: Update Nodinite Configuration
Section titled “Step 5: Update Nodinite Configuration”- Switch authentication mode to OIDC/OAuth 2.0 (see Install Nodinite v7 - OpenID)
- Assign Policies to existing Roles
- Test access with pilot users
- Roll out to all users
Step 6: Decommission Windows Authentication
Section titled “Step 6: Decommission Windows Authentication”Once verified:
- Remove Windows Users from Roles
- Remove Windows AD Groups from Roles
- Document the new Claims/Policies structure
Scenario 7: Dynamic Permissions Based on Time
Section titled “Scenario 7: Dynamic Permissions Based on Time”Goal: Grant temporary elevated permissions for on-call staff.
Step 1: Create On-Call Claims
Section titled “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
Section titled “Step 2: Create On-Call Policies”On-Call Administrator Policy
Section titled “On-Call Administrator Policy”- Name:
On-Call Administrator Policy - Description:
Elevated permissions for on-call staff - Claims:
oncall_status=activeaccess_level=adminenvironment=production
Standard Operations Policy
Section titled “Standard Operations Policy”- Name:
Standard Operations Policy - Description:
Normal operations permissions - Claims:
department=operationsaccess_level=editor
Step 3: Configure Identity Provider
Section titled “Step 3: Configure Identity Provider”In your identity provider:
- Set up automated processes to add/remove
oncall_status=activeClaim - Based on on-call schedule, dynamically assign Claims
- User gets elevated permissions only when on call
Result
Section titled “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
Section titled “Best Practices Across All Scenarios”Naming Conventions
Section titled “Naming Conventions”Recommended Naming
Section titled “Recommended Naming”- Use lowercase for consistency
- Use underscores for multi-word keys:
access_level,role_type - Be descriptive:
department,region,environment
Naming to Avoid
Section titled “Naming to Avoid”- Mixed case:
AccessLevel,Dept - Abbreviations:
env,rgn - Special characters:
access-level,role.type
Claim Design
Section titled “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
Section titled “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
Section titled “Testing”- Test with pilot users before full rollout
- Verify Claim matching - ensure users receive correct Claims from identity provider
- Check permission inheritance - verify Role assignments work correctly
- Document test results for audit purposes
Security
Section titled “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
- Separate environments: Different Policies for Dev, Test, Production
Next Steps
Section titled “ Next Steps” Add or manage Claim - Create Claims
Add or manage Policy - Create Policies
Add or manage Role - Assign Policies to Roles
Install Nodinite v7 - OpenID - Configure OIDC/OAuth 2.0
Troubleshooting Claims and Policies
Related Topics
Section titled “ Related Topics” What is a Claim?
What is a Policy?
What is a Role?
Access Management
Install Nodinite v7 - OpenID - EntraID
Permission Set for Log Views
Permission Set for Monitor Views
Permission Set for the Repository Model
Permission Set for C4 Diagram Sets