Haris Guide
Guide: Platform admin

GuideHaris admins

Platform admin

For the Haris team only (accounts listed in PLATFORM_ADMIN_SUBS). Open /platform or account menu → Platform admin. Other accounts get a 404 page.

Companies

  • List of all companies: owner, plan, active employees, locations, members. Search by name, cmp_…, or owner email.
  • Change plan per company (button on each row or on the detail page): choose Free, Pro, or Custom and a valid-until date (optional, information only). Only that company changes.
  • Plans set by a platform admin are manual: not billed through Sassly Pay, unpaid invoices are cancelled, and automatic renewal stops.
  • Suspend a company with a reason — members see the "Company suspended" page; Activate to restore. No data is deleted.

Accounts

  • The User plan column shows the plan given to the user (or Default = the sign-up plan), and Companies owned shows the plan of each of their companies.
  • Change plan per user: the plan is applied to every company the user owns at once, and companies they create later follow it too. The Custom plan lets the user own multiple companies; Free and Pro allow only one. Choosing the default plan returns the user to Default.
  • Block an account: sign-in is refused and active sessions stop at their next request ("Access closed"). Activate to restore.
  • Admins cannot block their own account.

WhatsApp per company

Since 16 Oct 2026 there is no longer one Haris WhatsApp number for all companies: every company connects its own number in Settings → WhatsApp (owner & HR admin; see WhatsApp notifications). Each number is its own device on the server's GOWA service with the id haris-cmp-… (the company ID in lowercase with the underscore turned into a hyphen — only lowercase letters, digits, and hyphens); Haris never touches other applications' devices on the same GOWA.

The WhatsApp tab in the platform admin is a read-only overview: companies that have a number or have turned on WhatsApp notifications, their status (connected, waiting for scan, disconnected, not connected), the masked number, since when it has been connected, the last message, the last error, plus the queue and messages failed in the last 24 hours. Filter by status or search by name / cmp_…. There are no buttons to scan a QR code, disconnect, or send a test here — if a company is disconnected, ask its admin to connect again.

Number statuses are refreshed by the whatsapp:check job every 5 minutes (cron); the company's owner & HR admins are notified in the app when its number disconnects. Server configuration lives in api/.env: WHATSAPP_DRIVER=gowa, GOWA_URL, GOWA_BASIC_AUTH, WHATSAPP_PER_MINUTE (message limit per number per minute). php api/bin/haris doctor shows how many numbers are connected / waiting for scan / disconnected and checks that GOWA can be reached.

Invitation email

The Services → Invitation email menu sets up one SMTP server (e.g. Sumopod: smtp.sumopod.com, port 465, SSL) that sends invitation emails for every company. Send info and email notifications still use each company's own SMTP in Settings → Email.

  1. Fill in the SMTP serverHost, port, encryption, username, and password from your provider. The password is stored encrypted and never shown again; leave it empty to keep it.
  2. Sender email & nameUse an address on a domain verified with the provider (e.g. [email protected]), not Gmail. Emails show up as "Company name via Haris".
  3. Send a test emailSend it to a Gmail address, then open the test email → three dots → Show original. SPF, DKIM, and DMARC should say PASS.

To keep emails out of spam:

  • The Sender domain section checks DNS: SPF (a single v=spf1 record that lists the provider's servers) and DMARC (a _dmarc.<domain> record, starting with v=DMARC1; p=none). DKIM is turned on at the SMTP provider and checked in the test email.
  • Invitation emails contain text + simple HTML with no images or trackers, one link to Haris that is also written out in full, and a note on how to ignore it if the recipient doesn't know the company.
  • Sending limits: 50 invitation emails per company per hour, 200 per day, and 5 per recipient address per day. Past a limit the invitation is still created and the admin copies its link.

Turn off Send invitation emails through this server to pause emails; company admins can still copy invitation links. The Invitation delivery section shows how many were sent/failed today and the last error.

Recruitment AI

The AI tab sets up LLM connections (Sumopod, OpenAI, Gemini, Claude, DeepSeek, OpenRouter, Groq, Mistral, Qwen, xAI or a custom server) with encrypted API keys, then picks a connection + model for each purpose (chat, CV processing, summaries, embedding), connection Test, and this month's CV usage per company. Details: Recruitment & CV screening → AI settings.

From the server (CLI)

php api/bin/haris plan:list
php api/bin/haris plan:upsert --code=pro --name=Pro --limits='{…}'
php api/bin/haris company:list
php api/bin/haris company:set-plan --company=cmp_… --plan=pro

Every platform admin action is recorded in the audit log.