---
title: "List all social logins for a user"
method: GET
path: "/users/{userID}/socialAccounts"
tags: ["Users"]
---

# List all social logins for a user

`GET /users/{userID}/socialAccounts`

Returns a list of social logins for a user by given `userID`.

The list can be sorted and filtered:  
- The `sort` parameter supports the following fields: `providerType` and `foreignID`.
- The `filter` parameter supports the following fields: `providerType` and `foreignID`.

Refer to the parameter description for more details on sorting in different directions and using the filter with different operators.

## Path parameters

- `userID` string, required

## Query parameters

- `sort` string
- `filter[]` string[]
- `page` integer
- `pageSize` integer

## Response `200`

List of social logins.

- SocialAccount[]
  - `socialAccountID` string, required — Unique identifier of the social account.
  - `providerType` string, required — Type of the social provider.
  - `identifierValue` string, required — Login identifier of the user (here email address).
  - `userID` string, required — Unique identifier of the user.
  - `foreignID` string, required — Unique identifier of the user in the social provider.
  - `avatarURL` string, required — URL of the avatar of the user in the social provider.
  - `fullName` string, required — Full name of the user in the social provider.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/corbado/apis/corbado-backend-api.md) · [All operations](https://skmtc.net/corbado/apis/corbado-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/corbado/corbado-backend-api/versions/1f6143efe426/schema)
