User( string Username )
Get an user’s information.
Request
Request Data:
- (string) Username (required) – the user’s login username.
{ "Username": <string> }
Response
{ "Result": { "Added": <string>, "Contact": { "ContactID": <int>, "Email": <string>, "FirstName": <string>, "LastName": <string>, "PhoneNumbers": [ { "Number": <string>, "PhoneNumberID": <int>, "Type": <int> }, { "Number": <string>, "PhoneNumberID": <int>, "Type": <int> }, { "Number": <string>, "PhoneNumberID": <int>, "Type": <int> }, { "Number": <string>, "PhoneNumberID": <int>, "Type": <int> } ], "Salutation": <string>, "Title": <string> }, "Fields": [ { "Field": <string>, "Value": <string> }, <... More Fields> ], "LastLogon": { // Removed on RPM27 "Browser": <string>, "IP": <string>, "When": <string> }, "LastSignIn": { // Removed on RPM27, replaced LastLogon "Browser": <string>, "IP": <string>, "When": <string> }, "Locked": <bool>, "Logon": <bool>, // Removed in RPM27 "Enabled": <bool>, // Added in RPM27, replaced Logon "Modified": <string>, "Role": <string>, "RoleID": <int>, "StaffID": <int>, "Username": <string> } }
Errors
- “User not found”
- “Permission denied”