Getting user information by user ID
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": "[email protected]",
"FirstLoginTime": 1544458672,
"FirstName": "User",
"Flags": [
"SecurityOfficer"
],
"FullName": "Test",
"Id": 123456,
"LastLoginTime": 1555593295,
"Name": "[email protected]",
"PartnerId": 246802,
"Password": null,
"PhoneNumber": "",
"RoleId": 1,
"Title": "Reseller",
"TwoFactorAuthenticationStatus": "Enabled"
}
},
"visa": "{{visa}}"
}
Updated 27 days ago