User's role matches

The User's role matches condition is used to check whether the currently logged-in user has a specific role assigned to them. It is evaluated when an event is triggered. If the condition passes (i.e., the user’s role matches the specified value), the corresponding action is executed. This is especially useful for creating role-based workflows — for example, showing admin-only features, redirecting different user types to specific pages, or controlling access to sensitive actions within your app.

Properties and Explanation

1

Role:

A dropdown list from which you can select the user role to check against. When the rule is triggered, the system will compare the logged-in user’s role with the selected one. If the roles match, the condition passes, and the corresponding action is executed.

Full Configuration Example

Let’s say you want to restrict access to a specific admin dashboard section so that only users with the Admin role can view it. With this rule, the Admin_Dashboard_Section will only appear if the logged-in user has the Admin role. For all other roles, the section remains hidden — enabling a simple, no-code way to enforce role-based access within your application.

Last updated