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

Authorizationstringheaderrequired

Bearer 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[]required
Show child attributes
roleInOrgIDstringrequired
namestringrequired
jobTitlestring | nullrequired
departmentstring | nullrequired
countrystring | nullrequired
managerRoleInOrgIDstring | nullrequired
managerHiddenany
personTypestring | nullrequired

Available options: EMPLOYEE, CONTRACTOR, ADMIN, null

truncatedbooleanrequired
viewerRoleInOrgIDstring | nullrequired
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits