Get Managers By Filter
MngGetManagersByFilter¶
Description: Returns manager accounts filtered from the in-memory staff cache. Response rows use the same structure as GetManagers.
Access Control¶
🛡️ Access Level Required:
SESSION_ADMINorSESSION_MANAGER
Request Parameters¶
All request parameters are optional. If no filter is passed, the command returns all managers.
| Field | Type | Description |
|---|---|---|
| access_backoffice | int | Shortcut filter. 1 returns managers with BackOffice access, 0 returns managers without it |
| access_crm | int | Shortcut filter. 1 returns managers with CRM access, 0 returns managers without it |
| limit | int | Optional page size |
| offset | int | Optional page offset |
| where | array | Optional filter conditions in the same format as GetUsersByFilter: [field, operator, value] |
| whereNot | array | Optional negative filter conditions |
| whereIn | array | Optional inclusion filter conditions |
| whereNotIn | array | Optional exclusion filter conditions |
| whereBetween | array | Optional range filter conditions |
| whereNotBetween | array | Optional negative range filter conditions |
| orderBy | array | Optional sorting. Supports ["field", "ASC"] / ["field", "DESC"] |
Supported filter fields include manager identity/profile fields, access scopes, runtime state, and permission flags returned by GetManagers.
Request Examples¶
CRM managers:
{
"where": [
["access_crm", "=", 1]
],
"orderBy": ["name", "ASC"]
}
Managers with both CRM and BackOffice access:
{
"where": [
["access_crm", "=", 1],
["access_backoffice", "=", 1]
]
}
Shortcut form:
{
"access_crm": 1,
"access_backoffice": 0
}
Response Parameters¶
| Field | Type | Description |
|---|---|---|
| rows | array | Manager rows with the same fields as GetManagers |
| count | int | Total number of rows matching the filter before pagination |
Response Example¶
{
"rows": [
{
"id": 2,
"admin": 0,
"enable": 1,
"access_backoffice": 0,
"access_crm": 1,
"groups": "*",
"name": "CRM Manager",
"email": "[email protected]",
"brand": "default",
"see_customers": 1,
"set_customers": 1,
"see_leads": 1,
"set_leads": 1,
"see_finance": 1,
"online": 0
}
],
"count": 1
}