---
title: "PATCH /v2/users/:user-id/identity-provider-id"
method: PATCH
path: "/v2/users/{user-id}/identity-provider-id"
---

# PATCH /v2/users/:user-id/identity-provider-id

`PATCH /v2/users/{user-id}/identity-provider-id`

Update the assignment of a user from one IDP to another.

## Path parameters

- `user-id` string, required

## Request body

- UpdateUserIdentityProviderIdRequest — Required authorization: ``HasRight(ParticipantAdmin)``
  - `userId` string, required — User to update Required
  - `sourceIdentityProviderId` string — Current identity provider ID of the user If omitted, the default IDP is assumed Optional
  - `targetIdentityProviderId` string — Target identity provider ID of the user If omitted, the default IDP is assumed Optional

## Response `200`

- UpdateUserIdentityProviderIdResponse

## Other responses

- `400` — Invalid value, Invalid value for: body
- `default`

---

[API](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints.md) · [All operations](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/canton/json-ledger-api-http-endpoints/revisions/296292e8b8f1/schema)
