Syntax
getUserByEmail(email)
Description
Gets the user by email address.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| string | Yes | Email address of a user. |
Return type
Returns the first user found with the specified email address.
Notes:
If there are multiple users with the same email address, the routine does not guarantee that it will always return the same user.
Example
Example 1
CUser user = getUserByEmail("jdoe@example.com");
Returns the first user found with the email "jdoe@example.com".
See also