Getting user information by user ID in JSON-RPC API
To get information about a user using the user ID, use the GetUserInfoById method.
Required parameters
| Parameter | Description | Supported values |
|---|---|---|
userId
|
The User ID of the user (retrieved through the GetUserInfo method) |
<int> Integer |
Sample request
{
"id": "jsonrpc",
"visa": "{{visa}}",
"method": "GetUserInfoById",
"jsonrpc": "2.0",
"params": {
"userId": 123456
}
}
Sample response
{
"id": "jsonrpc",
"jsonrpc": "2.0",
"result": {
"result": {
"EmailAddress": "user@domain.com",
"FirstLoginTime": 1544458672,
"FirstName": "User",
"Flags": [
"SecurityOfficer"
],
"FullName": "Test",
"Id": 123456,
"LastLoginTime": 1555593295,
"Name": "user@domain.com",
"PartnerId": 246802,
"Password": null,
"PhoneNumber": "",
"RoleId": 1,
"Title": "Reseller",
"TwoFactorAuthenticationStatus": "Enabled"
}
},
"visa": "{{visa}}"
}
