Policy Rules - RapidIdentity Platform Documentation

RapidIdentity Platform Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Mapping rule language provides additional capabilities for policy rules, such as username or password policies. The following rule creates usernames from the first letter of the first name in lowercase, followed by the full last name in lowercase, with an increasing index that starts at 2 when a collision occurs:

let idautoPersonUsernameMV = (givenName.lowercase().take(1) + sn.lowercase()).incrementOnCollision(2)

The argument 2 is optional, the default value is 1. Collision avoidance with incrementOnCollision is unique to policy rules.