Restrict access to domain selection by role (UI15 add UI11)

You can include a comma-separated list of roles in domain-related UI macros to restrict access to domain selection by user role.

Before you begin

Role required: admin

About this task

This procedure is valid for the pre-UI16 interface. Starting with UI16, you must use a system property to control access to the domain picker. See Restrict access to the domain picker (UI16).

Procedure

  1. Navigate to System UI > UI Macros.
  2. Select any of the four domain-related UI macros: two named domain_select and two named domain_reference_picker.
    There are two of each type two support different UIs. The UI macros with the Media Type field empty are for UI11, and the other two are for UI15.
  3. Locate one of the following lines of code:
    • domain_select:
      var ds =new DomainSelectControl("gsft_domain","itil","Domain","Domain");
    • domain_reference_picker:
      var dp =new DomainPicker("${jvar_id}","itil","DomainReference","Domain");
  4. Replace the parameter itil with a comma-separated list of roles to control who sees the domain selection menu.