Returns the domain's departments, sorted by name, with a member count for each. Departments are read-only here: file a user under one by setting the user's own department field. Requires Office Manager, Site Manager, or Basic User scope in the domain, Reseller scope for a domain in your territory, or Super User or Super User Read Only scope.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Query Params
Responses
🟢200OK
application/json
The domain's departments, possibly an empty array. The list joins the departments declared in the domain with every name users are filed under, so a department appears as soon as one user carries it, and count-users-total is 0 for a declared department with no users.