---
title: "Update the Entra external user ID for an Office 365-bound user"
method: PUT
path: "/office365s/{office365_id}/user/update"
tags: ["Office 365"]
---

# Update the Entra external user ID for an Office 365-bound user

`PUT /office365s/{office365_id}/user/update`

## Request

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

Sets or updates the stored Microsoft Entra external user ID (Entra Object ID) for a single JumpCloud user bound to this Office 365 integration instance. Mirrors the Active Directory `PUT /activedirectories/{activedirectory_id}/user/update` contract. No change is written back to Microsoft. All body fields are required.

## Path parameters

- `office365_id` string, byte, required

## Request body

- object: UpdateExternalIDRequest mirrors the Active Directory single-user update contract (adbridge UpdateInternalUserRequest): one JumpCloud user per call, identified by `user_id` in the body, scoped to the integration in the path.
  - `external_user_id` string: Microsoft Entra user Object ID (UUID). Required.
  - `user_id` string, byte: ObjectID of the JumpCloud user (hex). Required.

## Response `200`

User external ID updated successfully.

- O365UpdateExternalIDResponse: UpdateExternalIDResponse is intentionally empty, matching the Active Directory update contract (adbridge UpdateInternalUserResponse).

## 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)
