Use Case: Role-Based Permission View Panel

A system administrator may want to see which pages or processes the roles in the application (e.g., ‘Administrator,’ ‘Operations,’ ‘Sales Representative’) have access to. For this purpose, a Select Box is used to select roles on the screen created for this purpose. The Role ID information is typically retrieved from a database where roles are defined, such as KRole in the system; therefore, when the page loads, the KRole table is fetched using the ‘Get Data’ action and populated into the Select Box. When the user selects a role, the Authorisation → Get Application Management Access List By Role ID action triggered by clicking the ‘View Permissions’ button takes the selected Role ID as a parameter and returns the relevant access permissions. This access list can be presented to the user in a Table element with information such as access name, type, and module.

Application Steps

  • Element: ‘View Permissions’ button
  • Trigger: OnClick
  • Action: Authorisation → Get Application Management Access List By Role ID
  • Parameter:
    • Role ID → Role selected dynamically from a Select Box

The obtained access list can be displayed via a Data Grid or List component. Each row can contain fields such as access name, type, module, etc.