Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

This plugin allows for multiple user roles selection within a Joget DX app. A Permission Role in a Joget DX app is defined through a top-down hierarchy,
this plugin adds versatility in setting multiple roles to users in accessing a UI (Userview). Functionalities:

  • Multiple Roles switching for users to fulfil various permission rolesUsers with multiple roles in an app are able to switch and assume one role at a time.
  • Easy-to-use and Customizable message to identify role switching in userview.
  • Injected into the subheader of a userview using a hash variable.

...

As an example, a permission role for an Approver and a Financer is set and the corresponding User Groups are assigned. An employee requires access to both user group's permissions in the userview,
we can utilise utilize the user role selection plugin to allow an employee to have access to both group permissions.

...

  1. Please make sure that your intended employee's user account is part of the intended user groups. This plugin will only allow users to switch between the assigned groups that the user is a part of.
  2. Simply set permission roles and group groups within the application, and customize the permissions as needed in the userview. In the Permissions option of a permission group, select the User Role using User Group. Proceed to map a User Group to the specified Permission Group.
    Image Modified

...

  1. In the Userview Settings > Configure DX 8 Color Admin > Advanced > Sub Header, add in the following hash variable.
    #userRoleSelector.single?noescape#

      Note: The hash variable can be

...

  1. customized to showcase a message within the role-switching button.

    #userRoleSelector.single?noescape#

    (Default)

    Image Modified

    #userRoleSelector.single[Current Role:|Switch Role To]?noescape#

    (Custom Message)

    Image Modified