Get groups

API version3.0
Last Update05/08/2018
AuthenticationYES
HTTP MethodPOST
Content Typeapplication/json
Rate limitedYES
Requests per rate limit10/min
Response FormatJSON

Use to fetch groups in an account

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
limitnumberBodyOptionalSpecify a maximum number of groups will be returned in the response. The value should be in [1,50]. If there are more groups than what the limit asks for, HTTP code will be 406.10
pagenumberBodyOptionalSpecify a page number which groups will be returned in. If the requested page exceeds the number of pages of groups, error code will be 413. It means that the requested page number is too large, no groups will be returned in this case.1
searchstringBodyOptionalThe keyword to search. In which, the keyword can be a group name or an assigned policy
sortobjectBodyOptionalSpecify how to sort groups in result-set By default: sort groups by group_name in ascending order
sort.fieldstringBodyOptionalSpecify which field will be sorted by Values can be: group_name, domain_name, policy_name, number_of_devices, last_update.group_name
sort.orderstringBodyOptional

Specify sort order. Values can be:

  • asc: sort devices in ascending order.
  • desc: sort devices in descending order.
asc

Response HTTP Code

See APIs

Response Parameters

KeyDataTypeDescription
group_idstringa unique group identification
group_namestringgroup name
domain_namestringdomain name of a domain controller where this group is synchronized
auto_joinbooleanspecify if a device can auto-join this group when it registers to the account
policy_idstringassigned policy id
policy_namestringassigned policy name
number_of_devicesintnumber of devices assigned to this group
descriptionstringgroup description
created_datestringA timestamp in GMT format when this group is created
last_modifiedstringThe last timestamp in GMT format when this group is updated

Example

Example Request

Copy

Example Response

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard