> User directory object

The following objects are directly related to the userdirectory API.

User directory

The user directory object has the following properties.

PropertyTypeDescription
userdirectoryidstring(readonly) ID of the user directory.
name
(required)
stringUnique name of the user directory.
host
(required)
stringLDAP server host name, IP or URI. URI should contain schema, host and port (optional).
port
(required)
integerLDAP server port.
base_dn
(required)
stringLDAP base distinguished name string.
search_attribute
(required)
stringLDAP attribute name to identify user by username in Zabbix database.
bind_dnstringLDAP bind distinguished name string. Can be empty for anonymous binding.
bind_passwordstringLDAP bind password. Can be empty for anonymous binding.

Available only for userdirectory.update and userdirectory.create requests.
descriptionstringUser directory description.
search_filterstringLDAP custom filter string when authenticating user in LDAP.

Default value:
(%{attr}=%{user})
start_tlsintegerLDAP startTLS option. It cannot be used with ldaps:// protocol hosts.

Possible values:
0 - (default) disabled;
1 - enabled.

Media type mappings

The media type mappings object has the following properties.

PropertyTypeDescription
name
(required)
stringVisible name in the list of media type mappings.
mediatypeid
(required)
stringID of the media type to be created.

Used as the value for the mediatypeid field.
attribute
(required)
stringAttribute name.

Used as the value for the sendto field.

If present in data received from IdP and the value is not empty, will trigger media creation for the provisioned user.

Provisioning groups mappings

The provisioning groups mappings has the following properties.

PropertyTypeDescription
name
(required)
stringIdP group full name.

Supports the wildcard character “*”. Unique across all provisioning groups mappings.
roleid
(required)
stringUser role to assign to the user.

Note that if multiple provisioning groups mappings are matched, the role of the highest user type will be assigned to the user. If there are multiple roles with the same user type, the first role (sorted in alphabetical order) will be assigned to the user.
user_groups
(required)
arrayArray of Zabbix user group ID objects.

Each object has the following properties:
usrgrpid - (integer) ID of Zabbix user group to assign to the user.

Note that if multiple provisioning groups mappings are matched, Zabbix user groups of all matched mappings will be assigned to the user.