Restrict access to domain selection by role (UI15 and 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

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.