Check User Roles node
The Check User Roles node verifies whether a user has one or more specified IO roles. It evaluates the user's assigned roles and checks if they match the configured role or set of roles.
This node is available in: Authentication, Admin, Self Service, API, Consent, Library, Custom, User Defined
User binding configurations
This section allows you to configure how the user is bound to the session.
Username
You can bind the user either by username or by a specific attribute. In both cases, the corresponding value must be specified (e.g. {{form.username}}).
An additional Ignore case option is available.
Required Roles
In the dedicated field, select one or more roles to check if they are assigned to the user.
Save in the flow store
Attributes generated or retrieved from the node can be saved into a variable.
They can then be reused by other nodes in the flow by referencing them as {{variable.attribute}}.
To do this you choose attributes that need to be stored in the variable, and in the flow store (All attributes exposed by the node are listed in a multi-select dropdown, allowing the user to choose one or more of them), then a variable name that can be freely defined by the user.
There is also a flag to make the variable available to the frontend.
Default output node
- Authorised
- Not Authorised
- User not found
- Failure
JSON metadata
{
"name": "check_roles",
"active": true,
"bundleName": "am-users-nodes",
"bundleVersion": "1.0",
"nodeName": "CheckRoles",
"category": "user_role_management",
"deprecated": false,
"displayName": [{
"lang": "en",
"value": "Check User Roles"
}, {
"lang": "it",
"value": "Check User Roles"
}
],
"index": 15,
"inputs": [{
"name": "Input"
}
],
"outputs": [{
"name": "Authorized",
"level": "success"
}, {
"name": "NotAuthorized",
"level": "warning"
}, {
"name": "UserNotFound",
"level": "warning"
}, {
"name": "Failure",
"level": "error"
}
]
}