Create groups and assign roles to them. Users assigned to the group inherit the roles.

Before you begin

Role required: user_admin

Procedure

  1. Navigate to All > User Administration > Groups.
  2. Select New.
  3. On the form, fill in the fields.

    Some fields appear after personalizing the form. Personalize a form.

  4. (Optional) Remove or hide a group.
    1. Note: Only users in the hidden group are able to see the hidden group when selecting a group in a reference field.
      Create a true/false field labeled Hidden on the Group form.
      For more information on creating fields, see Add and customize a field in a table
      The system creates a field called u_hidden on the Users [sys_user_group] table and enables use of the Hidden check box to designate a hidden group.
    2. Create a new before query business rule on the [sys_user_group] (Group) table with the following script:
      if (!gs.hasRole("admin") && !gs.hasRole("groups_admin") && gs.getSession().isInteractive()) { 
        var qc = current.addQuery("u_hidden", "!=", "true"); //cannot see hidden groups... 
        qc.addOrCondition("sys_id", "javascript:getMyGroups()"); //...unless in the hidden group 
      }
      Note: For more information, see Before Query business rules.