Threecolts Single Sign On (3C SSO) / API Callbacks / Get user info

Get user info

GET /sso/users/{ssoUserId}

Version Change
v1.0 Initial version
v1.2 DB Structure changes, validations

<v1.2>

{ssoUserId} - integer - this will be a number which we need to match to hub_alpha>user>threecots_user_id

Gets a user's info. Should return 200 OK if success. 404 if not found. Response body is like the example below.

If hub_alpha>user>deleted is equal to 1 the record is treated as non existent

</v1.2>

Example response:

{
    "product_user_id": "1234",
    "email": "rcastro@threecolts.com",
    "user_name": "tacticalarbitrage",
    "first_name": "Rodrigo",
    "last_name": "Castro",
    "time_zone": "America/Chicago"
}
Key in response Value from field/hardoced Extra info
product_user_id hub_alpha>user>id
email hub_alpha>user>email
user_name hub_alpha>user>username <v1.2> Added value. Default null if empty</v1.2>
first_name hub_alpha>user>names Extract first name. Before first empty space
last_name hub_alpha>user>names All names if more than one. Except the first_name (refer above for how to select it)
time_zone hub_alpha>user>timezone <v1.2> Default value is UTC if empty Send the value from the database.</v1.2>
Is this article helpful?
0 0 0