Items to included (item_include_expr)
Decide which items to include in a valve
Overview
Section titled “Overview”With item_include_expr you can control if an item should be included in iteration ("item filtering").
Supported scopes are export, request, session and item.
Common examples
Section titled “Common examples”-
If the user has the single-valued attribute
carLicenseset totest, the user shall be assigned to the rolerole_admin.{"name": "ItemPropertyAdd","config": {"item_include_expr": "str.isEqual(item.carLicese, 'test')","name": "roles","value": "role_admin"}} -
If the user has the multi-valued attribute
memberOfand is a member ofgroup_1, the user shall be assigned to the rolerole_admin.
{ "name": "ItemPropertyAdd", "config": { "item_include_expr": "mv.containsAny(item.memberOf, 'CN=group_1,OU=Groups,DC=test,DC=local')", "name": "roles", "value": "role_admin" }}