Skip to content

Get Accounts Short List By Desk

MngGetAccountsListByDesk

Returns a lightweight account table for CRM selectors. Unlike BackOffice account list methods, this command does not accept groupFilter.

The backend reads the current manager id from __access.id, loads the manager from staff cache, and uses manager.desks as the desk scope. Accounts are included only when they are linked to a customer whose desk matches that scope.

Access Control

🛡️ Access Level Required: SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN

Request Parameters

Name Type Required Description
__access object Yes Session access object injected by backend/session layer

No deskFilter or groupFilter is accepted. Desk access comes from the cached ManagerRecord.desks.

Request

{
  "command": "MngGetAccountsListByDesk",
  "extID": "1",
  "data": {}
}

Response Parameters

Name Type Description
structure array Column order used in rows
rows array Account rows

Row Fields

  • login
  • name
  • group
  • currency

Response Example

{
  "structure": ["login", "name", "group", "currency"],
  "rows": [
    [100001, "John Smith", "real\\standard", "USD"]
  ]
}

If manager.desks is empty or no customers match the manager desk scope, rows is empty.