get https://{server}/api/v2.1/address-book/departments/
As a team (organization) user, you can use this API request to list all the departments in your team (organization).
The returned id
values are the IDs of each department. If the parent_group_id
is -1
, it means this department is in the root level.