---
title: "Link OIDC user to password account"
method: POST
path: "/users/link-oidc-to-password"
tags: ["Users"]
---

# Link OIDC user to password account

`POST /users/link-oidc-to-password`

Merges an OIDC-only account into a password-based account (admin only).

## Request body

- object
  - `oidcUserId` string
  - `targetUsername` string

## Response `200`

Accounts linked successfully.

## Other responses

- `400` — Invalid request or incompatible accounts.
- `403` — Admin access required.
- `404` — User not found.
- `500` — Failed to link accounts.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
