Skip to main content

List Users

Returns a paginated list of users filtered by network, mailbox, auth level, and status.

Endpoint​

POST /v2/users/list

Request Body​

FieldTypeRequiredConstraintsDescription
networkIdintegerNo—Filter by network ID
mailboxIdintegerNo—Filter by mailbox ID
authLevelAuthLevelNo—Filter by user permission level
statusStatusNo—Filter by user lifecycle status
pageNointegerNoDefaults to 1Page number for pagination
recordsPerPageintegerNoDefaults to 25Number of results per page
{
"networkId": 1,
"mailboxId": 101,
"authLevel": "MailboxUser",
"status": "Active",
"pageNo": 1,
"recordsPerPage": 25
}

Response​

Returns a paginated array of UserIDInfo objects matching the filter criteria.

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

ENUMs​

This endpoint uses the following ENUMs in its request and response. See Appendix: ENUMs for full value lists.

  • AuthLevel — filter and display user permission levels
  • Status — filter by user lifecycle state (e.g., Active, Suspended, Terminated)

Code Examples​

curl -X POST "https://rest.ecgrid.io/v2/users/list" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "networkId": 1, "mailboxId": 101, "authLevel": "MailboxUser", "status": "Active", "pageNo": 1, "recordsPerPage": 25 }'

See Also​