Panel Name fwAccessControl/fwAccessControl_EditUserGroups.pnl
Introduction

Edit group membership of a user

This panel allows to define the groups to which a user belongs. The panel is presented in Figure 1.

Figure 1: Edit user's group membership panel
The central part of the panel contains two lists: the list of all groups on the left, and the list of the groups to which the user is going to belong, on the right.
Note that the groups, which are already in the Member of list are "greyed out" in the All Groups list, and cannot be selected.


Instructions
To add group(s) to the 'Member of' list:
Select the group(s) (multiple selection is possible by clicking while holding the CTRL key) in the left list, then press the >. All groups may be added by clicking on the >> button.
To remove group(s) from the 'Member of' list:
Select the group(s) (multiple selection is possible by clicking while holding the CTRL key) in the right list, then press the <. All groups may be removed by clicking on the << button.
To bring the lists to the initial state (reset the changes):
Press the Reset button
To confirm the changes:
press the OK button. This panel will be closed and the control will return to the parent panel (Edit User panel). No changes will be applied to the group until you apply them in this parent panel!
To cancel the changes:
press the Cancel button.
Restrictions
  • The panel does not auto-update its contents when user or groups are changed (e.g. in another UI or by AC Server).
  • This panel should only be opened as a child panel of the Edit User panel

Dollar Parameters
Name Description  
$userName The name of the user whose group membership is edited; or empty string ("") in the create mode required
$groups The initial list of the groups displayed in the Member of: list (e.g. the "current" group membership). The dyn_string list should be casted to string variable - the panel will decode it. required

Return Values from panel
The panel should be opened using functions from the ChildPanel...Returns(... , df,ds) family.
When the panel is closed the following values may be returned in the df and ds parameters:
Variable Value(s) Description
dyn_float parameter (df[])
df[1] 1 Edit action terminated succesfully, OK button pressed
df[1] 0 Edit action cancelled, Cancel button pressed
dyn_string parameter (ds[])
ds[] if the dialog was not cancelled, will contain the modified list on the groups

Back to the documentation of the fwAccessControl component.

Piotr Golonka, CERN IT/CO-BE