Skip to content
Documentation
Updated 18 minutes to read
Markdown

Claims and Policies - Troubleshooting Guide

Section titled “Claims and Policies - Troubleshooting Guide”

Troubleshooting guide for Claims and Policies in Nodinite v7 using OIDC/OAuth 2.0 authentication.

  • ✅ Common issues and solutions
  • ✅ Error message explanations
  • ✅ Diagnostic steps
  • ✅ Best practices for prevention

A user with the right Claim gets the Forbidden page, the Policy found through Used In has no Role, a Role is ticked and the user sees the Log View, animated walkthrough (7.12)
Animated walkthrough: the user carries the right Claim but gets the Forbidden page. The Claim's Used In badge opens the Policy, which has no Role, so it grants nothing. Tick the Role and Save; the user's next page load lists the Role's Log Views.

The user's token carries Claims from the identity provider; Nodinite compares them with the Policies and gives the user every Role that has a matching Policy.

graph LR roIdp["fa:fa-id-card Identity provider<br/>token Claims"] --> roPolicy{"fa:fa-shield-check Does a Policy match?<br/>every Claim of the Policy"} roPolicy -->|"Yes"| roRole["fa:fa-users-class Roles of that Policy"] roPolicy -->|"No Policy on any Role matches"| roForbidden["fa:fa-ban Forbidden page<br/>403"] roRole --> roSets["fa:fa-lock Permission sets<br/>Log Views, Monitor Views and more"] style roIdp fill:#2678BD style roRole fill:#93d16d style roForbidden fill:#c33d34

Blue: where the Claims come from. Green: access granted through the Roles. Red: no Role, so the Web Client shows the Forbidden page.

Rule What it means
AND within a Policy The token must hold every Claim of the Policy
OR between Policies A Role is granted when one of its Policies matches
Case and spaces don't matter Key and Value are compared ignoring case and surrounding spaces: Department=Finance matches department=finance
Fail closed A deleted Policy, and a Policy that holds a deleted Claim, grant nothing to anyone
No Role Sign-in at the identity provider succeeds, but without a Role the Web Client shows the Forbidden page
  • A change in Nodinite (a Claim, a Policy, a Policy's Claims or Roles, or a Role's permission sets) counts within about 15 seconds. The Web API keeps each user's Claims → Policies → Roles result for 15 seconds, so a page reload after that is enough; the user doesn't have to sign in again.
  • A change in the identity provider (a value added to or removed from the user) counts from the user's next sign-in, because the Claims come from the token.

Cannot Create Claim - "Key/Value Already in Use"

Section titled “Cannot Create Claim - "Key/Value Already in Use"”

Error Message: This Key/Value combination is already in use on the Claims list (add or inline edit), or The Key/Value combination is already in use on the Policy editor's New tab.

Cause: The Key/Value combination is already in use, by an active Claim or by a deleted one. The check ignores case: department=Finance and department=finance are the same Claim.

  1. Check active Claims:

    • Navigate to Administration → Claims
    • Search for the Key and Value
    • If found, use the existing Claim instead
  2. Check deleted Claims:

    • Enable the Include deleted filter
    • Look for the Claim marked as deleted
    • Restore it instead of creating new
  3. Choose different Key or Value:

    • If you need a different Claim, modify either the Key or Value
    • Example: Instead of department=finance, use team=finance-operations
  • Use consistent naming conventions
  • Document your Claims structure
  • Check existing Claims before creating new ones

Issue: Created a Claim but don't see it in the Policy editor's All tab.

Cause: The Policy editor asks the Web API for the Claims each time its All tab loads; there is no browser cache of Claims. A Claim added in another browser tab shows once you open the Policy again. Clearing the browser cache or signing out never helps.

  1. Verify the Claim was saved:

    • Go to Administration → Access Management → Claims
    • Search for your Claim
    • Check the Created timestamp
  2. Open the Policy again:

    • Close the Policy editor
    • Reopen the Policy; the All tab loads the Claims fresh
  3. Check if the Claim was deleted:

    • In the Policy editor, enable Include deleted on the All tab
    • Look for the Claim with a Deleted badge
  • Restore a deleted Claim; recreate an unsaved one
  • Next time, use the Policy editor's New tab: Add and Use creates and selects the Claim

Issue: You want to delete a Claim, but Policies still use it.

Explanation: This is expected behavior New 7.12. A Claim that an active Policy uses can't be deleted. The Confirm intent to Delete dialog says You can't delete this Claim: Group = Contoso-Interim. It is used in these Policies:, lists them, and ends with Remove it from those Policies first. Its Yes button is disabled. The Web API answers 409 Conflict with the same text.

Delete of a Claim refused because a Policy uses it, then the Claim replaced on that Policy, animated walkthrough (7.12)
Animated walkthrough: the refused delete names the Policy; the Claim is replaced on it, as in the steps below.

  1. On Claims, check the Used In column; each badge opens its Policy
  2. In each Policy, take the old Claim off on the Claims card's Selected tab
  3. Tick the replacement Claim on the All tab (or create it on the New tab with Add and Use); a Policy needs at least one Claim and one Role to be saved, so replace the Claim rather than only removing it
  4. Save the Policy
  5. Delete the old Claim once no Policy uses it

Back on Claims, Used In is empty for Group = Contoso-Interim, Delete asks to confirm, Yes, and the Claim is deleted, animated walkthrough (7.12)
Animated walkthrough: with Used In empty, Delete asks "Are you sure you want to Delete Claim: Group = Contoso-Interim?" and Yes deletes it ("Claim Group = Contoso-Interim is now deleted!"). A deleted Claim can be restored with Include deleted.

  • Check the Used In column before deleting
  • Plan replacement Claims
  • Tell your team before deleting

Issue: User authenticates with correct Claims from identity provider but doesn't get expected access: the Web Client shows the Forbidden page.

The animation at the top of this page walks these steps.

  1. Verify the Claim exists in Nodinite:

    • Go to Administration → Access Management → Claims
    • Filter on the Value
    • Case and surrounding spaces don't matter: Department=Finance matches department=finance
  2. Check if the Claim is in a Policy:

    • Check the Used In column for Policies; each badge opens its Policy
  3. Verify the Policy is assigned to a Role:

    • In the Policy, open the Roles card's Selected tab
    • No Role means the Policy grants nothing; tick the Role on the All tab and Save
  4. Verify the Policy's other Claims:

    • The user must carry every Claim of the Policy (AND)
    • A deleted Claim on the Policy makes it grant nothing (see Policy Shows Deleted Claims)
  5. Verify the user has the correct Claim from the identity provider:

    • Check the user's authentication token
    • Check for typos in the Key, such as a short name where the token sends the long claim type URI
Problem Solution
Claim not in Nodinite Create the Claim in Nodinite
Claim not in Policy Add Claim to appropriate Policy
Policy not in Role Assign Policy to Role on the Policy's Roles tab
User lacks another Claim of the Policy Split the Policy, or add the Claim to the user in the identity provider
User doesn't have Claim Check identity provider configuration
  • Document exact Claim values
  • Test with pilot users before rollout

Cannot Create Policy - "The Name Is in Use"

Section titled “Cannot Create Policy - "The Name Is in Use"”

Error Message: The name is in use, under the Name field as you type. The check counts deleted Policies too. New 7.12 Save with that name doesn't save the Policy; it shows Input error(s) with Name : The name is in use.

The name is in use on Add Policy, and the deleted Policy with that name restored instead, animated walkthrough (7.12)
Animated walkthrough: The name is in use shows while you type. On Policies, filter on the name and tick Include deleted: a deleted Policy has it. Restore it from the Action menu instead of creating a duplicate ("Policy Contoso: Night Shift is now restored!").

  1. Choose a unique, descriptive name, for example "Finance Admin Policy" instead of "Finance Policy".
  2. Restore a deleted Policy with that name: tick Include deleted, find it, and restore it instead of creating a new one.
  3. Edit the existing Policy if it serves the same purpose, adding or removing Claims as needed.
  • Use descriptive, unique names
  • Follow naming convention: [Department] [Access Level] Policy
  • Document your Policy structure

Issue: Policy displays a Claim with a yellow Deleted badge on its Selected tab. The tooltip says This Claim is deleted. The Policy grants nothing until the Claim is restored or removed from the Policy.

Explanation: It happens in one case only, because a Claim that an active Policy uses can't be deleted: the Claim was deleted while the Policy was deleted too, and the Policy was restored afterwards.

  • ❌ The Policy grants nothing to anyone (fail closed)
  • Every user who relied on it loses the Policy's Roles until you fix it
  1. Remove the deleted Claims: on the Policy's Selected tab, uncheck the Claims with the Deleted badge and Save (the Policy must keep at least one Claim)
  2. Replace them: remove them as above, tick replacement Claims on the All tab, and Save
  3. Restore them: on Claims, enable Include deleted, find the Claims and restore them; the Deleted badges disappear from the Policy

Issue: Created a Policy but don't see it in Role editor.

Explanation: You assign a Policy to Roles from the Policy, not from the Role. The Role editor only lists the Policies already assigned.

The Role detail page shows a read-only Policies card with the Policies already assigned; Policies are added or removed on the Policy's Roles card.

  1. Assign from the Policy: open it in Administration → Access Management → Policies, check the Roles on the Roles card, and Save; see Add or manage Policy (Step 4: Assign to Roles)
  2. Use the API: assign the Policy programmatically through the Web API
  3. Verify the Policy exists: it was saved and isn't deleted

Issue: Save stays disabled on a Policy, and the editor says You must select at least one Claim and at least one Role to be able to save the Policy.

Explanation: A Policy needs at least one Claim and one Role to be saved, so an empty Policy can't exist. This is also why you replace a Claim on a Policy rather than only removing it.

  1. Add Claims to the Policy:

    1. Go to the Claims card's "All" tab
    2. Check Claims to add
    3. Or use the "New" tab to create a Claim ("Add and Use")
  2. Add a Role to the Policy:

    1. Go to the Roles card's "All" tab
    2. Check the Role the Policy should give
    3. Save the Policy
  3. Delete the Policy if it is no longer needed:

    1. Delete the Policy from its Action menu
    2. It can be restored later with "Include deleted"
  • Plan the Claims and Roles before you create a Policy
  • Use the New tab's Add and Use button for quick Claim creation

Policy Contains Conflicting Claims (Same Key, Two Values)

Section titled “Policy Contains Conflicting Claims (Same Key, Two Values)”

Issue: Created a Policy with multiple Claims that have the same key but different values, and now users who carry only one of the values get no access.

  • Users authenticate successfully but get the Forbidden page
  • The Policy appears valid but matches almost nobody
  • Test users with correct departments/regions still blocked

A Policy requiring two values of one key blocks the user, then split into two Policies with the same Role, animated walkthrough (7.12)
Animated walkthrough: the Policy requires both Group = Contoso-Finance and Group = Contoso-Logistics, so contoso.finance, who carries one value, gets the Forbidden page. Keep one Claim per key on the Policy, add a second Policy for the other value with the same Role, and the user matches one of them (OR).

Policy: "Multi-Country Access"
Claims:
* Country=Sweden (AND)
* Country=Norway (AND)
  1. Policies use AND logic - users must match ALL Claims

  2. Most claim keys carry one value per user, such as a country or a department

  3. A user with Country=Sweden doesn't also have Country=Norway

  4. ❌ Only a user whose token carries both values matches; everyone else is blocked

  1. Review Policy Claims: open the Policy, go to the Claims card's Selected tab, and look for Claims with the same Key but different Values (❌ Country=Sweden with Country=Norway; ✅ Country=Sweden with Group=Admin)

  2. Test with User Claims:

    User's actual Claims from IDP:
    Country: Sweden
    Group: Admin
    Policy requires (AND logic):
    Country=Sweden ✅
    Country=Norway ❌ ← User doesn't have this
    Result: Policy NOT satisfied → no Role from this Policy
Option 1: Remove Conflicting Claims (Quick Fix)
Section titled “Option 1: Remove Conflicting Claims (Quick Fix)”

On the Policy's Selected tab, keep only one Claim per key (for example Country=Sweden), remove the others, and Save.

Section titled “Option 2: Create Separate Policies for OR Logic (Recommended)”

The animation above shows this fix.

Policy "SwedenAccess": Country=Sweden → Role "Nordic Administrator"
Policy "NorwayAccess": Country=Norway → Role "Nordic Administrator"
Policy "DenmarkAccess": Country=Denmark → Role "Nordic Administrator"
Result: users from ANY Nordic country get the Role (OR) ✅
Instead of:
Country=Sweden (AND) Country=Norway
Consider:
Region=Nordic ← Single claim
Or configure IDP to send:
Country=Sweden
Region=Nordic ← Both claims, use Region in Policy
  • Only add Claims with unique keys to a Policy
  • For OR logic, create separate Policies assigned to same Role
  • Review Policy logic: AND within Policy, OR between Policies
  • Test Policies with actual user Claims before rollout

See Understanding Claim Logic in Policies for detailed explanation of AND/OR logic.


Issue: User can authenticate with the identity provider, but the Web Client shows the Forbidden page: 403 - Forbidden, Access level Log Views is required (the access the page needs; You have no access to this page when none is named), the method and URL, and the buttons Log out, Go Back and Go to the Nodinite Dashboard. There is no Access Denied message.

Cause: The user's Claims match no Policy on any Role, so the user has no Role. Walk the diagnosis in User Has Claim But No Access.

  1. Verify user has required Claims:

    • Check user's authentication token
    • Verify Claims are being sent by identity provider
    • Check Claim format matches Nodinite configuration
  2. Follow the Claims to a Role: on Claims, check that the user's Claims exist, that their Used In column lists a Policy the user fully matches, and that the Policy has a Role

  3. Check the Role's permission sets: the Role needs Access set to Allow for the page the user opens (Add or manage Role); the Forbidden page names the access level it needs

  4. Verify the Nodinite configuration: the OpenID Discovery URL, Client ID and Scopes; review Install Nodinite v7 - OpenID


Issue: User can log in but has incorrect access level (too much or too little).

A user with too much access, traced through Used In to the Policy's Role, and the Role replaced, animated walkthrough (7.12)
Animated walkthrough: contoso.logistics sees a Log View meant for the order desk. The Claim's Used In badge opens the Policy, whose Roles card shows the cause, Contoso: Operations. Replace that Role with the right one and Save; the next sign-in shows only Contoso Orders: Warehouse.

  1. Check user's Claims from identity provider:

    • Verify what Claims the user actually receives
    • Check authentication token or user profile
  2. Find matching Policies:

    • Go to Administration → Access Management → Claims
    • For each of user's Claims, check the Used In column
    • List all Policies user matches
  3. Check Role assignments:

    • Open each Policy from its Used In badge; its Roles card's Selected tab lists the Roles it gives
    • Or go to Administration → Access Management → Roles and check which Roles have those Policies
    • User gets permissions from all matching Roles
  4. Review permission sets:

Too much access Too little access
Remove overly broad Claims from the user (in the IDP) Add the required Claims to the user (in the IDP)
Or remove the Claim from the Policy Or create a Policy with the user's Claims
Or remove the Policy from the Role, and give the Policy the Role it should have (a Policy can't be saved without a Role) Or assign the Policy to a Role
Or adjust the Role's permission sets Or adjust the Role's permission sets

Issue: User authenticates but Claims from Azure AD don't appear in Nodinite.

  1. Check the OpenID configuration (Nodinite Portal → Environment → Authentication): the Discovery URL https://login.microsoftonline.com/{tenant}/v2.0/.well-known/openid-configuration, and a Client ID that matches the Azure AD app registration
  2. Verify the Azure AD app registration: correct scopes, granted API permissions, and a token configuration with the required claims
  3. Check the claim mapping: custom claims configured, group claims enabled if you use groups, and claim names that match the Nodinite configuration
  4. Test the authentication token: decode it with jwt.ms and check the Claim names and values
  1. Fix the Azure AD app registration: configure app roles and claims and grant admin consent; see Install Nodinite v7 - OpenID - EntraID
  2. Update the Nodinite configuration: update the Claims mapping in Nodinite Portal, verify the expected Claim keys, and test with a pilot user

Issue: Claims appear but with unexpected values.

  • Expecting role=admin but getting http://schemas.microsoft.com/ws/2008/06/identity/claims/role=admin
  • Expecting department=finance but getting department=finance-operations

A difference in case alone is never the problem: Key and Value are compared ignoring case and surrounding spaces, so department=Finance matches department=finance.

  1. Claim namespace:

    • Azure AD includes full namespace in claim key
    • Nodinite configured with short key name
  2. Claim transformation:

    • Identity provider transforms claim values
    • Different format than expected
Option How Example
1. Update Nodinite Claims (easier) Create Claims that match the actual IDP values, and use them in the Policies department=finance-operations
2. Configure IDP claim transformation In Azure AD or your IDP, map the claims to the expected format Transform finance-operations → finance
3. Use claim mapping in Nodinite In Nodinite Portal, map the IDP claim key to the Nodinite claim key Map the full namespace to a short name
  • Pick one casing for claim values as a naming convention (matching ignores case, so it is for readability only)
  • Document exact claim format from IDP
  • Test claim values before creating Policies

Issue: Claims or Policies management page takes long time to load.

Causes: a large number of Claims (1000+) or Policies, or many Policies with many Claims each.

  1. Use the search filter to narrow the list by text
  2. Clean up unused items: delete the Claims and Policies nobody uses
  3. Optimize the browser: clear the browser cache, disable extensions, use a modern browser (Chrome, Edge, Firefox)
  4. Review the Claims structure: consolidate similar Claims

Issue: "Session expired" error when managing Claims/Policies.

Cause: Authentication token expired during long editing session.

  1. Refresh the page (F5 or Ctrl+R), sign in again if prompted, and resume work
  2. Save work frequently: save Claims and Policies before taking breaks
  3. Increase the session timeout: ask your administrator to increase the token lifetime in the identity provider

Phase Practice
Design Document the Claims you need and one naming convention (matching ignores case; casing is for readability); map business requirements to small, focused Policies
Implementation Add a description to every Claim; build Policies one at a time and test each with a pilot user before the rollout
Maintenance Review Claims and Policies quarterly, remove unused ones, and use Log Audits to track changes

This page covers OIDC/OAuth 2.0 only. For Windows mode, check that the account or group exists in Nodinite, that it is assigned to a Role with Access in the right permission set, and that UseActiveDirectoryGroups is true when you rely on Windows AD Groups. The troubleshooting sections in Add or manage User and Add or manage Windows AD Group cover the common errors. To compare what a user actually gets, open the User; its permission tabs show the net rights from all Roles.

When reporting issues, include:

  1. Environment: Nodinite version, authentication mode (OIDC/OAuth 2.0), and identity provider (Azure AD, Okta, etc.)
  2. Claims: the Claim Key and Value, and the user's Claims from the identity provider
  3. Access: what the user should get and what they actually get
  4. Errors: the full error text, browser console errors, and network errors (F12 → Network tab)
  5. Steps to reproduce, with the expected and the actual result

Claims and Policies - Common Scenarios - Implementation examples
Add or manage Claim - Create Claims
Add or manage Policy - Create Policies and assign them to Roles
Add or manage Role - Set the permission sets

Claims - Understanding Claims
Policies - Understanding Policies
Roles - Understanding Roles
Access Management
Install Nodinite v7 - OpenID
Policies Overview
Understanding Claim Logic - AND/OR logic explained
Troubleshooting index

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...