Skip to content

Full recursive sub-tree below a user (manager-of-managers scope).

GET
/org/users/{userId}/chain
curl --request GET \
--url https://api.gospl.example/v1/org/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/chain \
--header 'Authorization: Bearer <token>'

Recursive over the reporting-line graph (recursive CTE, PR-13).

userId
required
string format: uuid

OK

Media type application/json
Array<object>
object
id
required
string format: uuid
name
required
string
jobTitle
string
team
string
photoUrl
string format: uri
Example generated
[
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"jobTitle": "example",
"team": "example",
"photoUrl": "https://example.com"
}
]

Missing/invalid credentials.

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}

Authenticated but not permitted.

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}

Not found within the caller’s tenant (cross-tenant lookups 404, not 403).

Media type application/json
object
code
required
string
message
required
string
Example generated
{
"code": "example",
"message": "example"
}