key-value-pairs

Use this policy type if you need an object containing pairs of keys and values, both defined by the administrator.

Example JSON output

{
  "policies": {
    "SecurityDevices": {
      "NAME_OF_DEVICE": "PATH_TO_LIBRARY_FOR_DEVICE",
      "NAME_OF_ANOTHER_DEVICE": "LIBRARY_PATH"
    }
  }
}

Example screenshot

Example implementation

SecurityDevices : {
  first_available : { mainstream : '64.0', esr : '60.4' },
  ui_category : 'security',
  type : 'key-value-pairs',
  label_key : browser.i18n.getMessage('policy_description_SecurityDevices_label_key'),
  label_value : browser.i18n.getMessage('policy_description_SecurityDevices_label_value')
}

Mandatory properties

label_key

TBD

label_value

TBD

Last updated