1What Claim-Role Mapping does

Concept

Automated collection membership at federated login

When a user logs into EmpowerNow through a federated IdP (Entra ID, Okta, ADFS, etc.), the IdP sends a set of claims in the token β€” attributes like department, groups, jobTitle, or custom claims. Claim-Role Mapping rules evaluate these claims and automatically place the user in the matching EmpowerNow collections.

Without CRM, every federated user would arrive with no collection memberships and therefore no application access. CRM eliminates the need to manually assign every user after their first login.

πŸ’‘
Example flow

Entra ID sends claim department = "Engineering". A CRM rule says: if department equals "Engineering", add to collection "Engineers". On login, the user is automatically placed in the Engineers collection β€” which has application roles attached β€” and can immediately access the right tools.

Rule anatomy

What makes up a CRM rule

ComponentWhat it is
NameHuman-readable label for the rule. Appears in the rules list and audit logs.
IdP ProviderWhich identity provider this rule applies to. Rules are scoped per IdP, so an Entra rule won't fire for an Okta login.
ConditionsOne or more claim-value tests. All conditions must match (AND logic). Each condition has a claim key, operator, and value.
Target CollectionsThe EmpowerNow collections the user is placed in when all conditions match.
PriorityNumeric priority. Lower number = higher priority. When multiple rules match, they all apply, but priority determines evaluation order.
StatusActive (fires on login), Draft (won't fire), Disabled (paused), Archived (retired).
ValidityOptional valid-from and expires-at dates. A rule outside its validity window acts as Disabled.
Condition operators

Available claim operators

OperatorMatches when…
equalsClaim value exactly equals the specified value (case-insensitive)
not equalsClaim value does not equal the specified value
containsClaim value contains the substring
starts withClaim value begins with the prefix
ends withClaim value ends with the suffix
is in listClaim value is one of a comma-separated list of values
existsThe claim is present in the token (any value)
not existsThe claim is absent from the token

2Open the editor

Navigation

Administration β†’ Identity β†’ Claim-Role Mapping

Navigate to /identity-core/claim-role-mapping. The editor loads in two panes: the left pane shows the IdP selector and existing rules list; the right pane is the rule builder (appears when you create or edit a rule).

experience.your-tenant.empowernow.ai/identity-core/claim-role-mapping
Identity Providers
Entra ID
EntraID federation3 rules
Okta
Okta SAML0 rules
Rules for Entra ID
Eng β†’ Engineers Collection● Active
department equals "Engineering"
HR β†’ HR Collection◐ Draft
department equals "Human Resources"
πŸ—ΊοΈ
Select a rule to edit or create a new one

3Create a rule

Step 3.1

Select an IdP and click + Create Rule

In the left pane, click the card for the IdP you want to create a rule for. Once selected (highlighted in blue), click the + Create Rule button that appears below the rules list. The right pane switches to the rule builder.

Step 3.2

Fill in the rule builder

FieldRequiredNotes
Rule NameYesDescriptive name that appears in the rules list and audit logs. Suggested format: Source β†’ Target.
DescriptionNoOperator notes explaining the business purpose of the rule.
ConditionsYes (min 1)Each condition tests one claim. Multiple conditions use AND logic β€” all must match.
Target CollectionsYes (min 1)The collections the user is added to when the rule matches. Multiple collections can be selected.
PriorityNoDefault 100. Use lower numbers (e.g. 10) for rules that should be evaluated first.
StatusNoStart as Draft to test before activating. Switch to Active when ready to fire on real logins.
⚠️
Save as Draft first

New rules default to Draft status, which means they are saved but do not fire during login. Test with the simulation tool (Task 4) before changing status to Active.

4Simulate & test a rule

Live simulation

The rule builder simulates automatically as you type

While building or editing a rule, the simulation panel on the right side of the rule builder updates in real time. As you add conditions and values, EmpowerNow runs a simulation against sample claim data and shows which collections the rule would match.

The simulation panel shows:

  • Matched collections β€” collections that would receive the user if the rule fired now
  • Condition evaluation β€” which conditions passed or failed for the test data
  • Warnings β€” if a referenced collection no longer exists or has no members
βœ…
Test with real claim values

To verify a rule will work for an actual user, enter the claim values that the IdP would send for that user. The simulation shows exactly which collections would be assigned.

Common issues

Troubleshooting a rule that doesn't match

SymptomLikely causeFix
Rule is Active but user didn't get collectionClaim key casing mismatch or IdP sends different key nameCheck the actual claim name in IdP token inspector; claim keys are case-sensitive
Rule matches in simulation but not on real loginRule is scoped to wrong IdPVerify the rule is under the correct IdP in the left pane
Rule fires but user gets wrong collectionsMultiple rules are matching and a higher-priority rule overridesReview all active rules for this IdP; check for overlapping conditions
Rule status is Active but never firesValidity date has expiredCheck the expires-at field on the rule

5Edit & toggle rules

Edit

Click a rule card to open it in the rule builder

In the left pane, click any rule card. The right pane loads the rule's current values. Make your changes and click πŸ’Ύ Save Rule. Changes take effect immediately on the next login for affected users.

Enable / Disable

Toggle a rule without deleting it

Each rule card in the list has an ⏸ Disable button (for active rules) or a β–Ά Enable button (for disabled rules). Clicking it flips the rule's status between active and disabled immediately, with no confirmation dialog.

πŸ’‘
Use Disable during maintenance

If you are updating a rule's conditions and want to prevent it from firing during the edit window, disable it first, make your changes, simulate, and then re-enable it. Users who log in while the rule is disabled will not receive the associated collections.

6Delete a rule

How to delete

Click πŸ—‘ Delete on the rule card

Each rule card has a πŸ—‘ Delete button. Clicking it opens a confirmation dialog naming the rule. Click Delete Permanently to confirm.

🚨
Deletion does not remove existing memberships

Deleting a CRM rule removes the rule definition only. Users who were already placed in collections by this rule remain in those collections β€” their membership is not automatically revoked. If you need to remove those users from the collection, do so separately in the Collections admin.

βœ…
Archive instead of delete

If you might need the rule again (e.g. a seasonal or project-based rule), consider setting its status to Archived rather than deleting it. Archived rules are preserved for audit purposes and can be re-activated.

Related guides

πŸ‘€ People Management πŸ“¦ Collections πŸ›‘οΈ Access Assignments πŸ”Ž Accounts & Orphans