Get a User by Email Address
Returns the details of a user (including custom fields) based on the Email Address.
Pass the “EmailAddress” in the API URL. You’ll get an empty (square brackets []) response if –
- You pass the “EmailAddress” of an inactive user.
 - The user doesn’t exist.
 
API URL
URL Parameters
| Parameter | Description | 
|---|---|
| EmailAddress | User's Email Address. | 
Response
[{
	"UserId":"718ae557-9d0b-11e7-b0ab-02e89b2fb8f4",
	"FirstName":"John",
	"LastName":"Doe",
	"EmailAddress":"vir.singh@leadsquared.com",
	"AssociatedPhoneNumbers":"+91-8556010497",
	"DateFormat":"mm/dd/yy",
	"TimeZone":"Asia/Kolkata",
	"Role":"Sales_User",
	"IsPhoneCallAgent":true,
	"OrgId":22824,
	"CompanyName":"Education 101",
	"UserType":0,
	"ManagerUserId":"bfd5a6ae-9d0b-11e7-b0ab-02e89b2fb8f4",
	"ManagerName":"Bob Doe",
	"mx_Custom_1":"Unmarried",
	"mx_Custom_2":"Male",
	"mx_Custom_3":"",
	"mx_Custom_4":"",
	"mx_Custom_5":"",
	"mx_Custom_6":"",
	"mx_Custom_7":"",
	"mx_Custom_8":"",
	"mx_Custom_9":"",
	"mx_Custom_10":"",
	"Groups":[{
		"Id":"022bc5d4-0fba-11e8-871e-02bf1924461c",
		"Name":"Delhi"
	}],
	"TeamId":"8bfc8586-0f53-11e8-871e-02bf1924461c",
	"TeamName":"Education 101"
}]
						HTTP Response Codes
| Code | Description | 
|---|---|
| 200 OK | This is the status code for successful API call.  | 
						
| 401 Unauthorized | The API call was made with invalid access credentials. Check your AccessKey and SecretKey.  | 
						
| 400 Bad Request | The message body on the request is not as per API specification. Make sure that content type is set to “application/json” and the JSON body has correct attribute names and structure.  | 
						
| 404 Not Found | The API could not be found. Please check the API signature.  | 
						
| 429 Too Many Requests | API calls exceeded the limit of 25 in 5 second(s)  | 
						
| 500 Internal Server Error | The API called failed. There could be many reasons for it. Check the exception message to get more details.  | 
						

