Retrieve enterprise SSO identity of user by SSO connector ID
Retrieves the user's enterprise SSO identity and associated token set record (if token storage is enabled for the SSO connector) by SSO connector ID.
GET
/api/users/{userId}/sso-identities/{ssoConnectorId}
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/sso-identities/{ssoConnectorId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"enterpriseSsoIdentity": {
"tenantId": "string",
"id": "string",
"userId": "string",
"issuer": "string",
"identityId": "string",
"detail": {},
"createdAt": 42.0,
"updatedAt": 42.0,
"ssoConnectorId": "string"
},
"tokenSet": {
"tenantId": "string",
"id": "string",
"userId": "string",
"type": "string",
"metadata": {
"scope": "string",
"expiresAt": 42.0,
"tokenType": "string"
},
"createdAt": 42.0,
"updatedAt": 42.0,
"ssoConnectorId": "string",
"issuer": "string",
"identityId": "string"
}
}