# Retrieve social identities, enterprise SSO identities and associated token secret (if token storage is enabled) for a user. **GET /api/users/{userId}/all-identities** 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. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. #### Query parameters - **includeTokenSecret** (string) Whether to include the token secret in the response. Defaults to false. Token storage must be supported and enabled by the connector to return the token secret. ## Responses ### 200: Returns the user's social identities, enterprise SSO identities and associated token secret. #### Body Parameters: application/json (object) - **socialIdentities** (array[object]) The user's social identities. - **ssoIdentities** (array[object]) The user's enterprise SSO identities. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: User not found. [Powered by Bump.sh](https://bump.sh)