Skip to main content

Group API

The Group API manages user groups in Deepser. Groups organize users into teams for assignment, visibility control, and notification purposes. This section describes the endpoints, role-based permissions, fields, and user membership operations.

Only Administrators with access to the Group Module can create, update, and delete groups. Operators and Key Users can only retrieve group records. End Users cannot access this resource via the API.

Endpoints

http://deepserhost/api/rest/group/[id]
http://deepserhost/api/rest/groups
http://deepserhost/api/rest/group/[id]/relation/users

Roles

AdministratorOperatorKey UserUser
Actions AllowedRETRIEVE CREATE UPDATE* DELETERETRIEVERETRIEVE

* UPDATE is not allowed for the user relation endpoint:

http://deepdeskhost/api/rest/group/[id]/relation/users

Fields

The following table lists all fields of the Group entity:

FieldDescription
entity_idThe unique ID of the record.
nameThe group name displayed throughout the system.
descriptionDescription of the group.
emailEmail address of the group.
levelSupport level of the group.
statusGroup status. Typically 1 for enabled, 0 for disabled.
company_visibilityGeneral visibility setting applied to all group members. Functions like the user-level company_visibility field.
user_idsAn array containing the IDs of all users in the group.
formtemplate_idThe form template ID used by the record.
updated_atDate of the last update.
created_atCreation date of the record.

Manage Group Members

Retrieve Group Users

To get only the user IDs in a group (without the full group details), send a GET request:

http://deepserhost/api/rest/group/[id]/relation/users

The response is an array of user IDs.

Add Users to a Group

To add users, send a POST request to the same endpoint with a JSON payload containing the user IDs:

http://deepserhost/api/rest/group/[id]/relation/users

Request body:


[
[
21,
22
]
]

Remove Users from a Group

To remove users, send a DELETE request to the same endpoint with a JSON payload containing the user IDs to remove:

http://deepserhost/api/rest/group/[id]/relation/users

Request body:


[
[
21,
22
]
]