> For the complete documentation index, see [llms.txt](https://docs.getpenfold.dev/dev/llms.txt)

# List workplace admins

> GET /organisations/{organisation_id}/workplace_admins
> 
> **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`.



## Servers
- https://payroll-api.getpenfold.dev/v4: https://payroll-api.getpenfold.dev/v4


## Authentication methods
- O auth2 client credentials


## Parameters

### Path parameters

- **organisation_id** (string)
  Penfold organisation id.


### Query parameters

- **external_id** (string)
  Return only the active admin with this `external_id`. Only for organisations
  that use single sign-on with Penfold; otherwise `400`.



## Responses
### 200
Workplace admins retrieved

#### Body: application/json (object)
- **items** (array[object])
  The organisation's active workplace admins.


### 400
Bad request, including `external_id` sent by an organisation that does not use single sign-on with Penfold.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.

- **validation_errors** (array[object])


### 401
Missing or invalid authentication token

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 404
Organisation not found, or not one you manage.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 405
Method not allowed. Partner organisations only.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.



[Powered by Bump.sh](https://bump.sh)
