Retrieve User Roles node
The Retrieve User Roles node retrieves all the roles associated with the bound user. It returns the list of roles assigned to the user, which can be used in subsequent steps of the flow.
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 (can use a variable from the form node, e.g. {{form.username}}).
An additional Ignore case option is available.
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
- Success
- User not found
- Failure
JSON metadata
{
"name": "retrieve_user_roles",
"active": true,
"bundleName": "am-users-nodes",
"bundleVersion": "1.0",
"nodeName": "RetrieveUserRoles",
"category": "user_role_management",
"deprecated": false,
"displayName": [{
"lang": "en",
"value": "Retrieve User Roles"
}, {
"lang": "it",
"value": "Retrieve User Roles"
}
],
"index": 21,
"inputs": [{
"name": "Input"
}
],
"outputs": [{
"name": "Success",
"level": "success"
}, {
"name": "UserNotFound",
"level": "warning"
}, {
"name": "Failure",
"level": "error"
}
]
}