Docs

List the provider accounts linked to a user

GET
/users/{user_id}/identity_links

The identity provider accounts a sign-in linked to the user, oldest first. The provider's subject and claims are never returned.

Authorization

headerAuthorizationBearer <token>

Scope: user.read

Path Parameters

user_id*string

The unique identifier of the user.

Match^user_[a-zA-Z0-9_-]+$

Query Parameters

limit?integer

Maximum number of items to return.

Range1 <= value <= 100
Default20
page_token?string

Token for fetching the next page of results. Obtain this value from next_page_token in the previous response. Omit to start from the beginning. Its format is opaque and may change between releases.

Response Body

The identity links of a user are returned

application/json
  1. response

Response containing the provider accounts linked to the user.

identity_links*array<>
next_page_token?|

Token to pass as page_token in the next request to fetch the following page. Absent when there are no more results.

Example Request
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const userIdentityLinks = await client.listUserIdentityLinks("user_01KWH3B72K7M7F0N9WD3P2E4YM");
Example Response
{  "identity_links": [    {      "id": "string",      "connection_id": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_page_token": "string"}

Was this helpful?