> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# UpdateUserIdentityProviderId

Ledger API

›

[Protobuf](https://docs.canton.network/reference/protobuf/overview.md)

›

[com.daml.ledger.api.v2.admin](https://docs.canton.network/reference/protobuf/packages/com-daml-ledger-api-v2-admin.md)

›

UpdateUserIdentityProviderId

com.daml.ledger.api.v2.admin

# UpdateUserIdentityProviderId

gRPC

RPC

`/com.daml.ledger.api.v2.admin.UserManagementService/UpdateUserIdentityProviderId`

## Protocol Details

Protocol
gRPC

Service
UserManagementService

RPC
UpdateUserIdentityProviderId

Client stream
No

Server stream
No

## Inputs

### UpdateUserIdentityProviderIdRequest

Message
com.daml.ledger.api.v2.admin.UpdateUserIdentityProviderIdRequest

Client stream
No

`user_id`
string

`source_identity_provider_id`
string

`target_identity_provider_id`
string

## Outputs

### UpdateUserIdentityProviderIdResponse

Message
com.daml.ledger.api.v2.admin.UpdateUserIdentityProviderIdResponse

Server stream
No

## Related Schemas

> [accordion] com.daml.ledger.api.v2.admin.UpdateUserIdentityProviderIdRequest
>
> `user_id`
> string
>
> `source_identity_provider_id`
> string
>
> `target_identity_provider_id`
> string

> [accordion] com.daml.ledger.api.v2.admin.UpdateUserIdentityProviderIdResponse

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.admin.UserManagementService/UpdateUserIdentityProviderId <<'EOF'
{
  "userId": "string",
  "sourceIdentityProviderId": "string",
  "targetIdentityProviderId": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{}
```
