Logged In User By Id
Description¶
The loggedInUserById
endpoint is used to fetch a user's details from the database during the login process. Depending on the response, the user could be prompted to change his password, enroll security questions, or perform other actions.
Request¶
Endpoint¶
/ui/v1/loggedInUserById/id
Note
Replace id
above with the internal ID of the user.
Method¶
GET
Header¶
Content-Type: application/json
Authorization: Basic $TOKEN
Note
Replace $TOKEN
in the request with the base64-encoded username/password combination in the format username:password
.
Given a username of username
and a password of password
, the request header would appear as follows:
Content-Type: application/json
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Response¶
{
"authorities": [
{
"authority": "1"
},
{
"authority": "SYSTEM_ADMIN"
},
{
"authority": "channelId:null"
},
{
"authority": "createdUserId:1"
},
{
"authority": "forceChangePasswordInd:false"
},
{
"authority": "lastLoginDateTime:2019-08-07 01:49 PM EDT"
},
{
"authority": "locale:en_US"
},
{
"authority": "minimumPasswordLength:6"
},
{
"authority": "passwordExpiredInd:false"
},
{
"authority": "passwordExpiryDaysIn:-1"
},
{
"authority": "passwordHistoryCount:10"
},
{
"authority": "securityQuestionsEnrolledInd:true"
},
{
"authority": "userEmail:superuser@datumsoftware.com"
},
{
"authority": "velaEnvironment:QA"
},
{
"authority": "loyaltyStatus:NOT_ENROLLED"
},
{
"authority": "loyaltyRewardsNumber:null"
},
{
"authority": "totalOutstandingPoints:0"
},
{
"authority": "forceChangeSecurityQuestionsInd:false"
},
{
"authority": "customerId:null"
},
{
"authority": "unpaidInvoiceCount:0"
},
{
"authority": "firstName:Super"
},
{
"authority": "lastName:User"
},
{
"authority": "paymentAction:UNKNOWN"
},
{
"authority": "transactionCategory:CARD_NOT_PRESENT"
},
{
"authority": "merchantId:1"
}
],
"details": null,
"authenticated": true,
"principal": "superuser",
"credentials": "$2a$11$lSqgm8tITT4L8zQqQ3./TuGt2f0ZQMtVQy1C/igRbbkyVHPGp2v1S",
"name": "superuser"
}
Updated As Of Version: 1.9.0.0