Skip to main content

Get User by Name

Searches for users matching a given login name and returns all matching UserIDInfo records.

Endpoint

POST /v2/users/by-name

Request Body

FieldTypeRequiredConstraintsDescription
loginstringYesThe login name to search for
{
"login": "jsmith"
}

Response

Returns an array of UserIDInfo objects matching the provided login name. Multiple results may be returned if the same login exists across different networks.

{
"success": true,
"data": [
{
"userId": 1042,
"login": "jsmith",
"email": "jsmith@example.com",
"firstName": "John",
"lastName": "Smith",
"networkId": 1,
"mailboxId": 101,
"authLevel": "MailboxAdmin",
"status": "Active",
"created": "2024-03-15T10:22:00Z"
}
]
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/users/by-name" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "login": "jsmith" }'

See Also

  • Get User — retrieve a user by their numeric User ID
  • List Users — paginated search with filters for network, mailbox, and auth level