Skip to main content

Platform Management

Platform Owners/Operators Only

This section applies only to people who operate the OPBX deployment. Organization users (Owner, PBX Admin, PBX User, Reporter, Supervisor) cannot open Platform Management. If you administer one organization, see Organization Settings instead.

Platform Management is a cross-tenant console for the team that hosts OPBX for one or more customer organizations. It appears in the sidebar as Platform Management (amber icon) for platform managers only. Anyone else who opens a /ui/platform/... address sees an Access Denied page: "You do not have platform manager privileges. Contact your system administrator if you believe this is an error."

Pages​

Sidebar itemPathWhat it is for
Dashboard/ui/platform/dashboardTotals across all organizations, the newest organizations and the latest platform actions
Organizations/ui/platform/organizationsList, edit, suspend, reactivate and delete organizations; Operate as
Users/ui/platform/usersOwner accounts of every organization; platform-manager flag, password, delete
Audit Log/ui/platform/audit-logRecord of platform actions
Platform Status/ui/platform/statusHealth of every OPBX component, with a 24-hour history

An organization detail page (/ui/platform/organizations/{id}) opens from the dashboard's Recent Organizations list.

The public status page at /status is separate. It needs no login and shows only coarse group health. See Public status page.

When the server refuses an action on these pages, the toast at the top of the screen names what failed (for example "Failed to delete user") and the line below it gives the server's reason (for example "Cannot delete the last owner of an organization.").

Access Requirements​

The is_platform_manager flag on a user account grants access. It is separate from the organization role. Set it from the server:

docker compose exec app php artisan opbx:create-platform-manager           # interactive: promote an existing user, or create a new user (and organization)
docker compose exec app php artisan opbx:set-platform-manager user@example.com
docker compose exec app php artisan opbx:revoke-platform-manager user@example.com

An existing platform manager can also grant or revoke the flag for Owner accounts on the Users page. Revoking the flag (command or page) also signs the user out of every session.

caution

The last platform manager cannot be revoked ("Cannot revoke the last platform manager."). Create and confirm a second one first.

Dashboard​

Who can do this: platform managers.

Open Platform Management → Dashboard. The page shows:

  • Organizations: the total, with the number of active ones. Click the card to open the Organizations page.
  • Users: the total across all organizations, with the number of platform managers. Click the card to open the Users page.
  • Extensions and DIDs: totals across all organizations.
  • Recent Organizations: the newest organizations. Click one to open its detail page; View All opens the Organizations page.
  • Recent Activity: the latest audit entries; View All opens the Audit Log.
Platform Dashboard with the Organizations, Users, Extensions and DIDs cards, Recent Organizations and Recent Activity

Organizations​

The Organizations page lists every organization with ID, Name/Identity (name and slug), Users, Extensions, DIDs, Status, Created and an Operate as button. Search by name or slug, filter by status (All Statuses, Active, Suspended, Deleted) and sort by any column. Pages hold 25, 50 or 100 rows.

The platform console has no action to create an organization. New organizations come from registration, Auth0 sign-up, or opbx:create-platform-manager.

Status: Active, Suspended, Deleted​

StatusEffect
ActiveNormal operation
SuspendedEvery request from that organization's users (API and web) is refused with HTTP 403 "Your organization has been suspended." Data is kept. Platform managers are not blocked, so they can still open and reactivate the organization
DeletedThe organization is removed with its data (see Delete an organization). It no longer appears in the list, so the Deleted filter normally shows nothing

Allowed changes: Active to Suspended or Deleted, Suspended to Active or Deleted. A deleted organization cannot change again.

Edit an organization​

Who can do this: platform managers.

  1. Open Platform Management → Organizations.
  2. Click the organization's row. The Edit Organization dialog opens.
  3. Change Organization Name (up to 255 characters) or Timezone (type a valid IANA time zone, for example America/New_York).
  4. Click Save Changes.

The toast "Organization updated" appears. An invalid time zone is refused: the toast "Failed to update organization" shows the server's validation message. The change is written to the audit log as organization.settings.updated. Cloudonix keys and secrets in the settings are masked (asterisks plus the last 4 characters) in the audit entry, as they are on the organization page.

You can also edit the name and time zone on the organization detail page, Settings tab, with Save Changes ("Organization settings updated").

Suspend an organization​

Who can do this: platform managers.

  1. Open Platform Management → Organizations.
  2. Click the organization's row to open Edit Organization.
  3. Next to Status: Active, click Suspend.

The toast "Organization suspended" appears and the status badge changes to Suspended. The organization's users are refused from their next request. The change is written to the audit log as organization.status.updated.

Edit Organization dialog on the Organizations page with the status control (Active badge and the Suspend button)

Reactivate a suspended organization​

Who can do this: platform managers.

  1. Open Platform Management → Organizations and set the status filter to Suspended if needed.
  2. Click the organization's row.
  3. Next to Status: Suspended, click Activate.

The toast "Organization activated" appears and the status badge changes to Active. On the organization detail page the same action is the Reactivate button.

Delete an organization​

Who can do this: platform managers.

  1. Open Platform Management → Organizations.
  2. Click the delete (trash) icon on the organization's row.
  3. In the Delete Organization dialog ("Are you sure you want to delete … ? This action cannot be undone."), click Delete.

The toast "Organization deleted" appears, the dialog closes and the row disappears. OPBX revokes the users' API tokens and removes the organization's extensions, ring groups, business-hours schedules, phone numbers, call logs and users, then the organization itself. The deletion is written to the audit log as organization.deleted, with the Cloudonix keys and secrets masked.

A row whose status is already Deleted (such a row can still be listed, for example with the Deleted filter) has no delete icon, because a deleted organization cannot change again.

The delete is refused when any user in the organization is a platform manager ("Cannot delete organization: one or more users in this organization are Platform Managers. …"). Revoke their platform-manager flag first. The page shows the toast "Failed to update status" with that message below it.

Delete from the organization detail page​

  1. Open the organization's detail page (for example from Recent Organizations on the dashboard).
  2. Click Delete in the page header.
  3. The same Delete Organization dialog opens. Click Delete to confirm, or Cancel to keep the organization.

After the delete you return to the Organizations page. Nothing is deleted until you confirm.

danger

Deleting an organization cannot be undone. Suspend first, take a database backup, and confirm with the customer.

Delete Organization confirmation dialog for Acme Corp (Demo) with the Cancel and Delete buttons

Operate as an organization​

Who can do this: platform managers, on active organizations only (the button is disabled for suspended ones).

Operating as an organization lets you act as its Owner, to reproduce a customer's problem without their password.

  1. Open Platform Management → Organizations.
  2. Click Operate as on the organization's row (or Operate as this organization on its detail page).
  3. The toast "Now operating as …" appears and the organization's Dashboard opens. A yellow banner at the top of every page reads "Operating as … — you are acting as an organization admin."
  4. Work as that organization's Owner. While the session is active the Platform Management section is hidden from the sidebar.
  5. Click Exit organization in the banner.

The toast "Exited organization" appears and you return to the Organizations page with your own platform identity.

How it works:

  • The web app attaches an X-Operate-As-Organization header to every API call during the session. There is no server-side session to time out; the session ends when you exit, log out, or your token expires.
  • Only a real platform manager can start a session ("Only platform managers may operate as an organization."). API keys and ordinary users are refused.
  • Only active organizations can be targeted ("The target organization is not active.").
  • Starting and stopping are both written to the platform audit log as operate_as.started and operate_as.stopped. The API (POST /v1/platform/operate-as/{organization}) accepts an optional reason that is stored on the audit entry; the web page does not ask for one.
Full Owner access

While operating as an organization you can change anything its Owner can, including users, routing and Cloudonix settings. Exit as soon as you are done.

Dashboard of Acme Corp (Demo) with the yellow Operating as banner, the Exit organization button and the Now operating as toast

Users​

The Users page lists the Owner accounts of every organization (other roles are not listed); the header counts them ("2 owners across all organizations"), while the Dashboard's Users card counts users of every role. Each row shows ID, Name, Email, Organization, Status, Platform Manager and Created. Search by name or email, filter by status (All Statuses, Active, Inactive, Pending; users have no Suspended status, an organization does) and by All Users, Platform Managers or Regular Users.

The platform console has no action to create a user. Users of an organization are managed by its Owner and PBX Admins on the Users page (or by you, after operating as the organization).

Click a row to open the Edit User dialog. It shows the name, email, an Owner badge, the Platform Manager switch, a Status list and a Change Password button.

Edit a user​

Who can do this: platform managers.

  1. Open Platform Management → Users.
  2. Click the user's row. The Edit User dialog opens.
  3. Change Name, Email or Status (Active, Inactive or Pending). The role stays as shown (Owner).
  4. Click Save Changes. The button reads Saving... while the change is sent.

The toast "User updated" appears, the dialog closes and the list shows the new values. When the server refuses the change (for example an invalid email address), the toast "Failed to update user" shows the server's reason and the dialog stays open. The change is written to the audit log as user.updated with the before and after values.

The Platform Manager switch and Change Password take effect on their own; Save Changes is not needed for them.

Grant or revoke platform-manager rights​

Who can do this: platform managers.

  1. Open Platform Management → Users.
  2. Click the user's row.
  3. Turn the Platform Manager switch on or off ("Grant cross-tenant administrative access").

The change applies immediately: the toast "Platform manager rights granted" or "Platform manager rights revoked" appears. Revoking also signs the user out of every session. Revoking the last platform manager is refused: the toast "Failed to update platform manager status" shows "Cannot revoke the last platform manager." The change is written to the audit log.

Set a user's password​

Who can do this: platform managers.

  1. Open Platform Management → Users.
  2. Click the user's row, then Change Password.
  3. Enter New Password (at least 8 characters) and Confirm Password.
  4. Click Update Password.

The toast "Password updated successfully" appears. The user's existing sessions stay signed in. The change is written to the audit log as user.password.updated.

Delete a user​

Who can do this: platform managers.

  1. Open Platform Management → Users.
  2. Click the delete (trash) icon on the user's row.
  3. Read the Delete User dialog. It lists what the delete changes: the user's extensions are kept but left unassigned, group and queue memberships are removed, and routes that pointed at those extensions are switched to "Destination unavailable". It is the same impact preview organization admins see (see Users).
  4. Click Delete User.

The toast "User deleted" appears. The deletion is written to the audit log as user.deleted.

Platform-level guards (the page shows the toast "Failed to delete user" with the message below as its reason):

GuardAPI message
Deleting your own account"You cannot delete your own account."
Deleting the last owner of an organization"Cannot delete the last owner of an organization."
Platform Users page, Delete User dialog listing the kept extension, a removed ring group membership and routes that become Destination unavailable

Platform Status​

The Platform Status page shows every OPBX component, its current status, and what happened over the last 24 hours. The header shows the time of the last check ("Last check …", or "No checks recorded yet").

Platform Status page: component cards with their status and the 24h status strips

Components​

ComponentWhat is checked
API / appApplication is answering; PHP and Laravel versions
MySQL (main) and MySQL (CDR archive)Query and server version. The archive is the warm CDR tier
RedisPing and memory use
SeaweedFSBoth buckets reachable (recordings and CDR archive)
QueuePending and failed jobs across the queues
SchedulerAge of the heartbeat written by the scheduled health check
ACD worker, AMD worker, Dialer workerTheir health endpoints
Soketi (real-time updates)Readiness endpoint
MCP serverHealth endpoint
Loki, GrafanaOnly when the logs profile is running
Cloudonix APIA lightweight request to the Cloudonix API

Each card shows Operational (green), Degraded (amber), Down (red) or Unknown, with the latency and a short detail. An optional service that is not running (Loki or Grafana without the logs profile) shows "Not running (optional)".

How status is decided​

Thresholds come from config/platform_status.php:

CheckDegraded (amber)Down (red)
HTTP probes (workers, Soketi, MCP, SeaweedFS, Loki, Grafana)Response slower than 1500 msUnreachable (no answer within 2.5 s, or refused) or an error HTTP status
QueueMore than 500 pending jobs, or 50 or more failed jobsNever; the queue check reports degraded at most
Scheduler heartbeatLast run 1 to 3 minutes agoLast run more than 3 minutes ago (also when it has never run)
Cloudonix APIThree consecutive checks with no fast answer (slow or no answer), not all of them lostThree consecutive checks with no answer at all

A Cloudonix answer counts as slow when it takes longer than 3000 ms. A check fails when no answer arrives within 5 s.

Cloudonix is an external Internet service, so a single slow or lost request never changes its status. Only the third consecutive bad check does.

The scheduler check is the only one that depends on the schedule itself. It stays "Unknown" until the first scheduled run after installation. A manual Check now does not refresh the scheduler heartbeat.

Run the checks now​

Who can do this: platform managers.

  1. Open Platform Management → Platform Status.
  2. Click Check now. The button reads Checking... while the checks run.

The cards and the "Last check" time update. The action is limited to 6 requests per minute; above that the page shows "Check failed: …" with the server's message, followed by "You may have hit the rate limit (6 per minute); try again shortly."

History​

  • The checks run every minute from the scheduler and are stored.
  • The page shows a 24-hour strip per component. Hover a segment to see its time and status.
  • The page refreshes every 30 seconds while the tab is visible.
  • History is kept for PLATFORM_HEALTH_RETENTION_HOURS (default 24) and pruned by the daily model:prune run.

No email or other notification is sent. Someone must watch the page.

Public status page​

/status is a public page that needs no login. It is linked from the public home page navigation and the footer.

It shows six groups, each the worst status of its components:

GroupComponents
Web portal & APIAPI, MySQL (main), Redis
Call routingAPI, Cloudonix
Call queuesACD worker, queue
Auto dialer & voicemail detectionDialer worker, AMD worker
Recordings & storageSeaweedFS, MySQL (CDR archive)
Real-time updatesSoketi

The banner reads All systems operational, Partial outage or Major outage. The page shows a six-hour strip per group.

Internal components (scheduler, Loki, Grafana, MCP server) and all details (versions, latency, hostnames, error messages) are never shown on the public page. The data comes from GET /api/v1/public/status, cached for 30 seconds.

Audit Log​

Every platform action is recorded with:

FieldDescription
TimestampWhen it happened
ActorThe platform manager who did it ("by …", or "System")
ActionWhat was done, shown by its label (see the table below)
TargetThe organization or user affected
ReasonWhen one was given through the API
Before / AfterThe changed values

Actions written today, with the label the Audit Log shows and offers in its action filter:

LabelAction name (API action filter)Written when
User Createduser.createdA user is created through the API
User Updateduser.updatedSave Changes in Edit User
User Deleteduser.deletedA user is deleted
User Password Changeduser.password.updatedUpdate Password
Platform Manager Granteduser.platform_manager.grantedThe Platform Manager switch is turned on
Platform Manager Revokeduser.platform_manager.revokedThe switch is turned off
Organization Settings Updatedorganization.settings.updatedAn organization's name or time zone is saved
Organization Status Changedorganization.status.updatedAn organization is suspended or reactivated
Organization Deletedorganization.deletedAn organization is deleted
Operate As Startedoperate_as.startedOperate as starts a session
Operate As Stoppedoperate_as.stoppedExit organization ends it

Review the audit log​

Who can do this: platform managers.

  1. Open Platform Management → Audit Log.
  2. Optionally type a platform manager's user ID in Search by platform manager user ID....
  3. Optionally pick an action in the action filter (All Actions or one of the labels above). Only entries of that action are listed.
  4. Click an entry to expand it. The expanded entry shows the reason (when given) and the before and after values; "No changes recorded" when there are none.

Entries are listed newest first, 25, 50 or 100 per page.

Audit Log with an Organization Status Changed entry expanded, showing the status change from suspended to active

Audit entries are kept for RETENTION_PLATFORM_AUDIT_LOGS_DAYS (default 365) and then pruned. See Data retention.

Cross-tenant call data​

The Platform API has a read-only CDR archive endpoint, GET /v1/platform/cdr-archive, that lists warm-tier call records (by default 6 to 12 months old) for all organizations, newest first. Filters: organization_id, disposition, from and to (number prefix, with or without +), from_date and to_date. The web console does not show it. See Call Logs.

MethodEndpointPurpose
GET/v1/platform/dashboardDashboard totals and recent items
GET/v1/platform/organizationsList organizations (search, status, sort, paging)
GET / PUT/v1/platform/organizations/{id}Show or edit an organization (name, time zone)
PATCH/v1/platform/organizations/{id}/statusSuspend, reactivate or delete (status, optional reason)
GET / POST/v1/platform/organizations/{id}/usersList or create users of one organization (API only)
GET/v1/platform/usersList users across organizations
GET / PUT / DELETE/v1/platform/users/{id}Show, edit or delete a user
GET/v1/platform/users/{id}/delete-impactPreview what a delete changes
PATCH/v1/platform/users/{id}/platform-managerGrant or revoke the flag
PATCH/v1/platform/users/{id}/passwordSet a password (at least 8 characters)
GET/v1/platform/audit-logsAudit log (filters: platform_manager_user_id, target_organization_id, action, date_from, date_to)
GET/v1/platform/cdr-archiveWarm-tier CDRs of all organizations
GET/v1/platform/statusPlatform Status data
POST/v1/platform/status/checkRun the checks now (6 per minute)
POST / DELETE/v1/platform/operate-as/{id}, /v1/platform/operate-asStart or stop operating as an organization

See the OPBX REST API reference for full schemas.