Retrieve social identities, enterprise SSO identities and associated token secret (if token storage is enabled) for a user.
This API retrieves all identities (social and enterprise SSO) for a user, along with their associated token set records from the Logto Secret Vault. The token sets will only be available if token storage is enabled for the corresponding identity connector.
GET
/api/users/{userId}/all-identities
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/all-identities' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"socialIdentities": [
{
"identity": {
"userId": "string",
"details": {}
},
"tokenSecret": {
"tenantId": "string",
"id": "string",
"userId": "string",
"type": "string",
"metadata": {
"scope": "string",
"expiresAt": 42.0,
"tokenType": "string",
"hasRefreshToken": true
},
"createdAt": 42.0,
"updatedAt": 42.0,
"connectorId": "string",
"identityId": "string",
"target": "string"
},
"target": "string"
}
],
"ssoIdentities": [
{
"ssoIdentity": {
"tenantId": "string",
"id": "string",
"userId": "string",
"issuer": "string",
"identityId": "string",
"detail": {},
"createdAt": 42.0,
"updatedAt": 42.0,
"ssoConnectorId": "string"
},
"tokenSecret": {
"tenantId": "string",
"id": "string",
"userId": "string",
"type": "string",
"metadata": {
"scope": "string",
"expiresAt": 42.0,
"tokenType": "string",
"hasRefreshToken": true
},
"createdAt": 42.0,
"updatedAt": 42.0,
"ssoConnectorId": "string",
"issuer": "string",
"identityId": "string"
},
"ssoConnectorId": "string"
}
]
}