You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Introduction

The userview Permission Menu allows you to configure category permissions for user-defined groups at run-time. This feature does away with the need to go into the userview builder to manually set the permission for every menu category.


Get Started

The easiest way to see how the Manage Permission menu works is to download the attached demo app, import and run in your Joget platform:

Steps

Screens (Click to view)

  1. Manage permission menu basically allows you to configure the userview menu category permissions from the run time screens. In this example (Figure 1), there are four menu categories you can assign the view permission.
  2. Click on the Configure button will present you with the following options (Figure 2):
    • Is Admin
    • Is Anonymous
    • Bean Shell Script
    • Department
    • Group
    • Logged In User
    • Organization
    • Is Sub Level Userview
    • User
  3. In Userview Builder, the Manage Permission is configured in Figure 3. 
  4. Each menu category permission property (Figure 4) is tagged as "Permission Type = Controlled By Manage Permission Menu" and given a "Permission Key" value. You use this "Permission Key" value to perform the mapping in Manage Permission "Permissions" grid.

Figure 1

Figure 2

Figure 3

Figure 4


Figure 1: Permission Menu in Userview

Figure 2: Configuring permission - Add User - Permission Menu in Userview





Manage Permission Properties

Configure Manage Permission Menu


NameDescription
Custom ID

Item link slug. Optional field.

Unique field

Value defined here must be unique to the rest of the Userview Menus as the first matching name will be called upon.

Figure 1

LabelMenu label. Mandatory field.
Page TitlePage title on Permission Menu page.
Permissions
Permission Key

Id to match against userview categories.

See Figure 3 & 7 for reference.

Permission LabelPermission list name. See Figure 1 & 3 for reference.
Category

Group label. Category to group similar permission labels under.

See Figure 1 & 3 for reference.

Optional Field.

Enable Refined Controls?

Allows administrators to implement intricate user permission configurations per group.

Using LDAP / External Directory Manager?

If you are using external directory manager such as the LDAP Directory Manager, you must enable this option to use this Manage Permission menu.

Important Note

Once this feature is enabled, only users with administrative access can manage the permission.

As opposed to Figure 2, when configuring permission, you will be brought to the following screen for finer permission control.

Figure 4: Enabled Refined Controls

How to use this permission plugin in a userview category

In the userview category that you wish to manage its permission via this plugin, edit the category's permission as shown in figure 5.

Figure 5: Adding permission to an userview category

Figure 6: Change "Permission Type" to grant permission to Permission Menu

Figure 7: Assigning "Permission Key" to Category to match against in Permission Menu

After setting up the Permission Menu, remember to configure all the respective userview categories.

Note that, multiple categories can use the same permission key. Setting up as such will grant multiple categories to a permission group.


Download Demo App

APP_manage_permission_dx_kb.jwa





  • No labels