- Dynamic Role Assignments:
- Dynamic Assignment with Role Parameter
- By adding dynamic values to the Role parameter, you can assign different roles depending on the status of the user. For example, if a user will be rewarded after a certain event or campaign, a special role can be assigned to them. These are dynamic values:
- From the action result via the symbol picker,
- By manually defining as fixed,
- Taken via Component,
- Roles retrieved from SQL database or C# can be dynamically categorized not only with Role List but also with different symbol picker categories. Thus, each category enables a more customized role assignment based on the status of the users.
- Fetching Roles with SQL or C#
- Roles can be retrieved from a database or an in-system service.
- Role list can be imported instantly from the system and transferred to the RoleName field.
- Example: The “Premium User” role is assigned to the user who receives premium membership.
- Integrating User and Role Management:
- The action can be combined with the registration form or profile update screens.
- When certain fields are filled in, the user can be automatically assigned predefined roles.
- Example: When the user fills out a form on the application and the user profile is updated, roles such as “Editor” or “Admin” can be automatically assigned based on certain criteria.
- Assigning Multiple Roles:
- This action can be used more than once to assign multiple roles to the user.
- Example: The same user can be assigned both “Admin” and “Editor” roles.
Technical Risks and Controls
- Wrong Role Definition: Make sure that RoleName is a role defined in the system.
- Unauthorized Access: Ensure that the action is executed only by authorized users.
- Missing Authorization Scope: The required Authorization settings of the assigned role must be made.
Add User To Role action allows you to create role-based access control by assigning users to specific roles in Kuika applications. It offers both a flexible and secure authorization infrastructure with advanced integration support, dynamic parameters and the ability to assign multiple roles.