People & profiles
Get Hris Org Chart
The org chart: active people with their manager, job title, department and country, for the People page's Org chart view and the employee Org chart page. A client admin gets their People data scope (a TEAM-scoped admin only their people); employees, only while the org chart employee switch is on, get the people who have started across the organization. At most 5,000 people: truncated is true when there are more, and a person whose manager was cut off carries managerHidden.
GEThttps://api.toku.com/hris/get-hris-org-chart
Required scope: people:read
curl --request GET \
--url 'https://api.toku.com/hris/get-hris-org-chart' \
--header 'Authorization: Bearer <token>'200 response
{
"rows": [
{
"roleInOrgID": "string",
"name": "string",
"jobTitle": "string",
"department": "string",
"country": "string",
"managerRoleInOrgID": "string",
"personType": "EMPLOYEE"
}
],
"truncated": true,
"viewerRoleInOrgID": "string"
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Response
200Successful response
rowsobject[]requiredShow child attributes
roleInOrgIDstringrequirednamestringrequiredjobTitlestring | nullrequireddepartmentstring | nullrequiredcountrystring | nullrequiredmanagerRoleInOrgIDstring | nullrequiredmanagerHiddenanypersonTypestring | nullrequiredAvailable options: EMPLOYEE, CONTRACTOR, ADMIN, null
truncatedbooleanrequiredviewerRoleInOrgIDstring | nullrequired400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits