> For the complete documentation index, see [llms.txt](https://docs.getpenfold.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`. An employer-scoped access
> token receives `403 Forbidden`.
> 
> Returns the people who currently have Workplace Platform access to a
> managed organisation, newest first. Admins whose access has been
> removed are not included.
> 
> Pass `external_id` to find a single admin by your platform’s identifier
> for them, as supplied when they were registered. At most one admin is
> returned. An unknown identifier, or one belonging to an admin whose
> access has been removed, returns an empty list rather than `404`.
> `external_id` is only accepted from Partner organisations that use
> single sign-on with Penfold; other organisations receive `400`.



## 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)
  Unique identifier for the managed organisation.


### Query parameters

- **page_size** (integer)
  The maximum number of workplace admins to return per page.

- **page_number** (integer)
  The page number to return in the list of workplace admins.

- **external_id** (string)
  Optional filter. Your platform’s identifier for the admin, as
  supplied when they were registered. Returns at most one admin.
  Must not be blank. Only accepted from Partner organisations that
  use single sign-on with Penfold.



## Responses
### 200
List of workplace admins retrieved successfully.

#### Body: application/json (object)
- **page_number** (integer)
  The current page number.

- **page_size** (integer)
  The number of workplace admins per page.

- **total_items** (integer)
  The total number of workplace admins available.

- **items** (array[object])
  An array of workplace admin objects on the current page.


### 400
Bad request. Either `page_size` or `page_number` is out of range (no `validation_errors`), or `external_id` was supplied by an organisation that does not use single sign-on, or was blank (see `validation_errors`).

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

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


### 401
Unauthorized

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


### 403
Forbidden, the access token is scoped to an employer.

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


### 404
Organisation not found, or not managed by your Partner organisation.

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


### 405
Method not allowed

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



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