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

# Link a client’s people to your platform

> POST /partner_management_requests/{partner_management_request_id}/sso_identity_links
> 
> **Partner organisations only.** A Payroll organisation calling this
> endpoint receives `405 Method Not Allowed`. An employer-scoped access
> token receives `403 Forbidden`.
> 
> While you manage the request’s organisation, links the workplace admins and employees
> already on the client’s organisation to your platform’s identifiers, so
> they can sign in to Penfold through your platform. Read Penfold’s
> identifiers from the workplace admin and employee endpoints, match them
> to your people, and send the pairs.
> 
> Each row is linked, skipped or failed on its own, and one failed row
> does not stop the others. A row that was already linked is skipped, so
> you can safely send the whole batch again after fixing the failed rows.
> 
> Returns `404 Not Found` when the request does not exist or was sent by
> another organisation.



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


## Authentication methods
- O auth2 client credentials


## Parameters

### Path parameters

- **partner_management_request_id** (string)
  Penfold’s identifier for the partner management request, as returned when it was created.



### Body: application/json (object)

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

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



## Responses
### 200
Every row was processed. Check each row’s `result`.

#### Body: application/json (object)
- **workplace_admins** (array[object])

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


### 400
Bad request, the request is malformed, has no rows, or has more than 1,000 rows in total.

#### 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
Partner management request not found, or sent by another 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.


### 409
Nothing can be linked for this request. Nothing was linked. Use `code`, not `error`, to tell the cases apart; `error` is a human-readable message and its wording may change.

#### Body: application/json (object)
- **code** (string)
  You don’t manage the request’s organisation. The request was never approved, was `Reverted`, or the organisation has since been unlinked from you even though the request still reads `Approved`. Nothing was linked.

- **error** (string)



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