---
title: "Set external identity correlations"
method: PUT
path: "/office365s/{office365_id}/users/external-id"
tags: ["Office 365"]
---

# Set external identity correlations

`PUT /office365s/{office365_id}/users/external-id`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/office365s/{office365_id}/users/external-id`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/office365s/:office365_id/users/external-id/put.ts> (a function with typed inputs; its response is checked against the schema)

Set or update Entra external user ID correlations for multiple JumpCloud users on an Office 365 integration resource.

## Path parameters

- `office365_id` string, byte, required

## Request body

- object
  - `correlations` O365ExternalIDCorrelation[]
    - `externalUserId` string
    - `userObjectId` string, byte

## Response `200`

OK

- O365UpdateExternalIDCorrelationsResponse
  - `resourceObjectId` string, byte
  - `updatedCount` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
