Discussions
Persons Endpoint does not return person information, only employment ID
13 days ago by Michael Böhrer
I'm trying to get person information from the endpoint /v2/persons, but it only returns an array with user id and employment, no other information? This is the resulting data:
{
"_data": \[
{
"employments": [
{
"id": "eb3f5858-aaaa-aaaa-aaaa-aaa"
}
],
"id": "aaaaaaa",
"_meta": {
"links": {
"employments": {
"href": "<https://api.personio.de/v2/persons/aaaaaaa/employments">
}
}
}
},
{
"employments": [
{
"id": "f1b03988-bbbbbb-bbbbb-bbbbbb"
}
],
"id": "bbbbbbb",
"\_meta": {
"links": {
"employments": {
"href": "<https://api.personio.de/v2/persons/bbbbbbbb/employments">
}
}
}
},
.... \_ meta....]
According to the docs it should return the full users? also, when going to the persons/id, it also only returns the employment id:
"employments": [
{
"id": "eb3f5858-aaaaa-aaaaaa-aaaaaa"
}
],
"id": "32180425",
"_meta": {
"links": {
"employments": {
"href": "https://api.personio.de/v2/persons/32180425/employments"
}
}
}
The token should have the full scope:
`employees:read employees:write attendances:read attendances:write absences:read absences:write documents:read documents:write reports.custom:read personio:compensations:read personio:compensations:write personio:recruiting:read personio:recruiting:write personio:webhooks:read personio:webhooks:write personio:org-units:read personio:legal-entities:read personio:cost-centers:read personio:workplaces:read personio:absences:read personio:attendances:read personio:absences:write personio:attendances:write personio:persons:read personio:persons:write
What am I missing? When I add the token to the interactive docs, the response is exactly the same.
Thanks,
Michael