Partner organisations only. A Payroll organisation calling this
endpoint receives 405 Method Not Allowed.
Lists the organisation's active workplace admins. Removed admins are not listed.
Pass external_id to look an admin up by your own identifier rather than storing
Penfold's id. That returns at most one admin, or an empty list when no active
admin has that external_id.
Query parameters
-
Return only the active admin with this
external_id. Only for organisations that use single sign-on with Penfold; otherwise400.
GET
/organisations/{organisation_id}/workplace_admins
curl \
--request GET 'https://payroll-api.getpenfold.dev/v4/organisations/{organisation_id}/workplace_admins' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"items": [
{
"id": "cmo1adm000001abcd",
"email": "sam@harbourgroup.example",
"first_name": "Sam",
"last_name": "Taylor",
"external_id": "usr_01HXYZ"
}
]
}
Response examples (400)
{
"error": "Bad request: invalid data provided.",
"validation_errors": [
{
"field": "email",
"message": "Email address is invalid."
}
]
}
Response examples (401)
{
"error": "Bad request: invalid data provided."
}
Response examples (404)
{
"error": "Bad request: invalid data provided."
}
Response examples (405)
{
"error": "Bad request: invalid data provided."
}