Configuration & Admin
AgentWatch is administered from a web console, with a small set of environment variables set at deploy time. The console covers everything an organization administrator needs; a platform-level super administrator additionally sees across organizations.
What is configured at deploy time?
Section titled “What is configured at deploy time?”Environment variables covering the database connection, service ports, session and encryption secrets, credentials for any local analysis model, the detection-model size, and backup secrets. Everything else — providers, models, policies, budgets, routes, identity, and users — is runtime configuration managed in the console and stored in the database, so promoting between environments does not require a config-file diff.
What do administrators manage in the console?
Section titled “What do administrators manage in the console?”- Providers and keys — add providers, pool multiple keys each, set per-key concurrency and rate limits, test keys against the live provider, and turn on rotation alerts (a daily email and audit entry for any key older than the interval you set).
- Models — expose which models are available to which teams, set per-organization aliases, and retire models without breaking existing consumers.
- Organizations, teams, and employees — the full hierarchy, with CSV bulk import, per-employee keys and budgets, and pause/resume of access.
- Budgets and rate limits — budgets at four tiers with daily and monthly caps, alert thresholds, and admin overrides with expiry; employee budgets are enforced at the gateway always, team budgets when Enforce team budgets is enabled.
- DLP and guardrail policies — detection categories, custom recognizers, confidence thresholds, severity overrides, and per-policy actions.
- Gateway routes — path patterns, upstream targets, transformations, timeouts, per-route IP allowlists and blocklists, with import, export, clone, and reorder.
- Compliance frameworks — GDPR, SOX and PCI-DSS checkboxes that tell the Data Compliance Analysis review which frameworks to check a conversation against. They do not turn on detection, retention or blocking; turn on the matching DLP categories and retention settings yourself (see Security & compliance).
- Identity — SSO providers, group-to-team mapping, and SCIM provisioning.
- Roles and access control — three built-in roles (super admin, company admin, user), per-role feature switches at Settings → Roles & features → Access, and custom roles at Settings → Roles & features → Roles (see Custom Roles).
How does identity administration work?
Section titled “How does identity administration work?”A single hub-and-spoke wizard walks an administrator through vendor selection (Microsoft Entra ID, Okta, Google Workspace, Auth0, GitHub, generic OIDC, generic SAML, or Active Directory/LDAP), protocol setup, group-mapping mode, and a connection test before enabling. Drafts can be saved mid-configuration, and auto-create and enabled toggles are set per provider.
Group-to-team mapping is unified across OIDC, SAML, and LDAP, with three modes: off (users get a default role), automatic (directory group names are parsed by a rule and teams are created on the fly with a budget template), or mapped (administrator-defined group-to-team rules with role, budget template, and priority). Mappings apply at first login and update memberships on subsequent logins.
SCIM v2 provisioning is available per organization, with named tokens shown once, usage telemetry, expiry, and revocation — so joiner/mover/leaver flows are driven by the directory rather than by hand.
What happens when someone forgets their password?
Section titled “What happens when someone forgets their password?”From 2.0.386, the sign-in page has Forgot password?. The person enters their email, and AgentWatch emails them an 8-digit code to type into the same form along with a new password. The email carries a code, never a link, so it cannot be redirected to another website.
| Rule | Value |
|---|---|
| Code lifetime | 15 minutes, single use; a new request replaces the old code |
| Wrong guesses | 5, then the code is void and a new one must be requested |
| Requests | 3 per address and 20 per IP in 15 minutes |
| Who receives a code | accounts that sign in with an AgentWatch password, and are not disabled |
| Who does not | SSO, SAML, LDAP and SCIM accounts: their password lives in the identity provider |
| New password | the same policy as everywhere else (8+ characters, upper and lower case, a number, a symbol) |
| Audit | user.password_reset_requested and user.password_reset_self |
The page answers the same way whether or not the address has an account, so it cannot be used to find out who has one. The code is sent through the email provider configured in Company Settings → Email Notifications (SMTP, SendGrid, Amazon SES, Google Workspace, or Microsoft 365 through Microsoft Graph) for the person’s workspace, or its parent workspace for a sub-tenant. If no provider is configured, no code is sent, and the person has to ask an admin to reset the password. Sign-in sessions already open are not ended by a reset.
When an admin resets someone’s password, or creates an account with a temporary password, the console asks that person to choose a new password the first time they open it, and keeps asking until they do. This is a step in the console, not an API control: calls made with that session are not refused in the meantime.
How granular are permissions?
Section titled “How granular are permissions?”AgentWatch has three built-in roles, and every screen, API check and identity-provider setting uses the same three. A workspace can add custom roles between Employee and Company admin (see Custom Roles); a person who holds one is still an Employee underneath:
| Role | Stored value | Scope | What it means |
|---|---|---|---|
| Super admin | super_admin |
the whole platform, every organization | sees and changes anything |
| Company admin | admin |
one organization (and, for a parent workspace, its sub-tenants) | full control of that workspace |
| User | user |
themselves | uses the gateway; no admin pages |
An organization may have any number of company admins. You grant it per employee at Employee Management → Edit employee → Role → Company admin. The same Role list offers the workspace’s custom roles (made in Settings → Roles & features → Roles; how roles work), between Employee and Company admin. An employee with no login account cannot change role until a password reset creates one — the list is disabled and says so. In an SSO deployment the usual route is a group mapping with role Company admin (see Single sign-on). Super admin is a platform role and can never be assigned by a tenant’s identity provider.
What happened to Owner, Manager, Viewer and “Team Admin”?
Section titled “What happened to Owner, Manager, Viewer and “Team Admin”?”They were removed in the role cleanup, because none of them did what its name suggested:
| Old choice | Where it appeared | What it actually did | What it is now |
|---|---|---|---|
| Team Admin | Add employee | It was the company admin, mislabelled | Company admin |
| Company Admin (OIDC default role) | SSO provider settings | Stored as company_admin: the sidebar showed admin pages and every admin API refused them |
Company admin (admin) |
| Viewer, Manager, Owner | Group mappings, SCIM | Nothing — the role was left unchanged | — no change — |
| Viewer, Manager | A person’s role (API, older consoles) | Treated as a plain user | User |
| Default org role (Auto mode, SSO and SCIM) | Auto group mode | Nothing — auto mode never changes a role | Removed; a note explains how to grant Company admin |
On upgrade, AgentWatch rewrites stored values once at start-up. Each change is
logged (role-migration-changed, with the old and new value) and saved to a
journal before it is written, so it can be audited and undone. A summary
line follows (role-migration-complete):
- a person stored under an old spelling of company admin (
company_admin,tenant_admin,owner,org_admin) becomesadmin. They already passed some admin checks and were refused by others; now every check agrees, so they gain the admin screens that refused them before. Check the list below before upgrading if that matters to you. - a person stored as Viewer or Manager becomes
user. They were already treated as a plain user, so only the stored spelling changes. - a group mapping set to Viewer, Manager or Owner becomes — no change —, which is what each of them always did. Not User, because a User mapping demotes a company admin at their next sign-in; not Company admin, because that would grant access on upgrade. If you meant one of those groups to grant a role, edit the mapping and choose it.
- a value that is not a role at all is left in place, has no effect, and is
logged (
role-migration-user-unknown,role-migration-mapping-needs-review).
How do I check, or undo, the role rewrite?
Section titled “How do I check, or undo, the role rewrite?”The rewrite runs automatically when the container starts. The environment
variable AW_ROLE_MIGRATION changes what that start-up step does:
| Value | What happens at start-up |
|---|---|
| (unset) | Rewrites legacy values. Each change is journaled first; if the journal cannot be saved, nothing is changed. |
report |
Logs every change it would make (role-migration-would-change) and writes nothing. Use it once before upgrading to see exactly who is affected. |
restore |
Puts the journaled values back (role-migration-restored), for a downgrade. A value an admin changed after the upgrade is kept and logged as role-migration-restore-skipped. |
0 |
Does nothing. |
To preview an upgrade, start the new image once with AW_ROLE_MIGRATION=report,
read the log, then restart without it:
docker compose logs app | grep role-migrationTo downgrade, restart the new image once with AW_ROLE_MIGRATION=restore,
confirm the role-migration-complete line shows failed: [], then deploy the
older image. Back up the database before any upgrade regardless; the journal
covers the role rewrite only.
The older per-organization permission table (Owner / Administrator / Manager /
Viewer with keys such as users.read) is no longer offered. A company admin
holds every one of those permissions; the screens that used the table
(/tenant/* user and role administration) now check the role, so a company
admin who was never given a row in it is no longer refused there.
What does the API accept?
Section titled “What does the API accept?”Every write that sets a role validates it and answers 400 for anything that is not a role, rather than storing it:
| Field | Accepted values |
|---|---|
Employee / user role |
user, admin, super_admin (super admin only by a super admin) |
SSO / LDAP provider defaultRole |
user, admin |
Group mapping orgRole |
"" (no change), user, admin |
Old spellings are still accepted, so existing scripts keep working:
company_admin, tenant_admin, owner and org_admin are stored as admin;
Viewer and Manager as user on a person and as "" (no change) on a group
mapping. Each accepted old value is logged as role-legacy-value-accepted with
the caller and path, so you can find and update the script sending it.
Who can do what, and is it enforced?
Section titled “Who can do what, and is it enforced?”Yes, and Settings → Roles & features is where you see it and change it. It replaces the old Access Control table and the Plan Features panel (plan features now live at Platform Admin → Plans → Plan features): one page answers “who can use what, and why not”, and the server enforces what it shows. A role whose feature is switched off gets 403 ACCESS_NOT_GRANTED from the API, not just a hidden menu item. Company admins now see Settings → Roles & features (formerly Security, super admin only), so a workspace admin manages its own access without asking the platform. Super admins are never restricted; this page sets what company admins and employees can use.
[SCREENSHOT: Settings → Roles & features, Access view, one workspace selected]
How is the page laid out?
Section titled “How is the page laid out?”The page header holds Change log and New role. New role is on every tab and opens the role drawer in place; it is shown only for a workspace, because custom roles belong to one. Below the header is the Editing bar. Its picker chooses what you are editing: Platform defaults (super admin), your own workspace, or one of your sub-tenants. The four view tabs sit inside the same bar, so the picker applies to all of them. Switching scope with unsaved changes asks Discard or Keep editing.
The tabs are views of one draft. Switching tabs never discards anything: an access change, a custom-role change and an API switch can all wait in the Unsaved changes bar together, and Review and save saves them in one go.
What are the views?
Section titled “What are the views?”| View | Who sees it | What it does |
|---|---|---|
| Access | Company admins and super admins | A grid of features by role (Company admin, Employee, then each custom role). Every cell is a checkbox named “ |
| Roles | Company admins and super admins | The workspace’s custom roles, with a count on the tab: who holds each one, the plan’s role limit (Roles: 3 of 4), edit, delete and Change which roles stay. Each role is view-only features plus up to four actions and a data scope. See Custom Roles. |
| APIs | Company admins and super admins | The nine Extended API switches (Images, Audio, Embeddings, Batches, Rerank, Moderations, Files, Assistants, Fine-tuning) for the scope in the Editing picker. An API that is off is refused with 403 api_disabled. See What does the APIs tab change? |
| Check access | Company admins and super admins | Search for one person and see, feature by feature, whether they can use it and which layer says no. Use it to answer “why can’t Ana open Audit Export?” without guessing. |
Plans are not on this page. Which features a plan includes is edited by super admins at Platform Admin → Plans → Plan features (see How do I choose a plan’s features?).
[SCREENSHOT: Check access view showing a person with one closed layer]
How do I find my way around the Access grid?
Section titled “How do I find my way around the Access grid?”- Groups. Features are grouped by area (Analytics, Management, Settings, …). Each group header shows a count and collapses or expands its rows; Expand all / Collapse all is in the toolbar.
- The Platform group lists the platform screens (for example WAF Protection). They have no checkbox: “Platform setting. Only super admins can open it.” A company admin cannot be given them. In a workspace the group starts collapsed; on Platform defaults it starts open.
- Filters, which combine: Find a feature, Role (All roles, or one role, which hides the other role columns), Only restricted (rows where something is switched off) and Only unsaved (rows with a pending change). When nothing matches, the empty state names the filters to clear.
- Role column menus. Each role header has a ⋯ menu. For Company admin and Employee it offers Check a person with this role, which opens Check access. For a custom role it also offers Edit role and Delete role. In a workspace, a last narrow + column also opens New role.
- Wide tables. When the role columns are wider than the screen (many custom roles, or the explanation open), the table scrolls sideways. When it fits, the column headers and group headers stay at the top while you scroll down.
What does each checkbox mean?
Section titled “What does each checkbox mean?”| What you see | Meaning | What to do |
|---|---|---|
| Ticked | Allowed: the role can use the feature here | Untick it to switch it off at this level |
| Empty | Switched off at this level | Tick it to allow the feature again, if no higher layer is closed |
| Locked (greyed, but you can still focus it) | Closed by the plan, the parent workspace or the platform; the explanation panel names which | Ask whoever the panel names; a lower layer cannot re-open it |
| A dash | Not part of this role: the role’s baseline never has this feature | Nothing; it is how the feature is built |
The column header shows each role’s scope once: Company admin is “Whole workspace” and Employee is “Own data”.
The explanation panel opens when you click a cell or press Enter on it; moving focus alone does not open it. On wide screens it slides in from the right over the table and stays fixed on screen while you scroll; the page makes room for it, so the cell you are on is never under it. It is not a dialog: the table stays usable, and the arrow keys keep moving between cells while the panel follows. Its close button or Escape closes it and returns focus to the cell. On narrow screens (1100px or less) it is a bottom sheet, opened the same way.
What does the APIs tab change?
Section titled “What does the APIs tab change?”The APIs tab edits the Extended API switches of the scope in the Editing picker, and saves through the same Unsaved changes bar as the rest of the page:
| Editing | What a save writes |
|---|---|
| Platform defaults (super admin) | The platform settings row, the default for every workspace |
| A workspace (super admin) | That workspace’s own settings row |
| Your own workspace (company admin) | Your workspace’s settings row |
| A sub-tenant (company admin) | Nothing: the switches are read-only, with “Open the sub-tenant to change its APIs.” Open the sub-tenant (Management → Sub-tenants → Open sub-tenant) and change them there |
Only the switches you changed are sent. A switch the platform decides is locked and says why: for the default-on APIs a platform off is a ceiling (“Off for every workspace (platform)”); for Fine-tuning, which is off by default, a platform on opens it everywhere and a workspace may only turn it on. These are the same rules the gateway enforces, so the tab and the gateway cannot disagree.
In what order are the layers checked?
Section titled “In what order are the layers checked?”Top-down, and the first closed layer decides. A lower layer can only switch more off, never back on.
| Order | Layer | Closed when | Who can change it |
|---|---|---|---|
| 1 | Plan | The workspace’s plan does not include the feature | Super admin (Platform Admin → Plans → Plan features) |
| 2 | Parent workspace | The parent workspace switched it off for its sub-tenants | The parent’s company admin |
| 3 | Platform | The platform switched it off for the role everywhere | Super admin |
| 4 | Workspace | This workspace switched it off for the role | The workspace’s company admin, or its parent’s admin |
| 5 | Role | The feature does not apply to this role at all (“Not part of this role”) | Nobody; it is how the feature is built |
A feature that is outside the workspace’s plan stays off whatever the policy says, and a sub-tenant’s plan is its parent’s. When the platform and the parent workspace both switch a feature off, the platform is named as the reason.
Who can edit which layer?
Section titled “Who can edit which layer?”- Super admin: any layer, any workspace, and the plan features.
- Company admin: its own workspace’s layer. A parent company admin can also read and change the layer of each of its sub-tenants from the scope picker (the change is audited as the parent admin acting from the parent). A change made in a sub-tenant’s scope becomes that sub-tenant’s own setting, and its admin can change it back. To set a limit a sub-tenant cannot override, switch the feature off in your own workspace — that also applies to your own people, and the Unsaved changes bar counts the people in your sub-tenants as well. It can never touch a sibling or a stranger workspace, and the platform layer is read-only for it.
- Archived sub-tenants are not editable and do not appear in the picker; a person in an archived sub-tenant cannot be checked either.
- Employee: no access to the page.
A lower layer cannot undo a higher one. If the platform switched a feature off, a workspace admin sees the checkbox locked with the editor named (“Set by your platform administrator”) and no fix button.
How do I do it through the API?
Section titled “How do I do it through the API?”Name a level with ?scope=platform (super admin only) or ?organizationId=<workspace id>:
# What is switched off at the platform level?curl -s "$BASE_URL/api/admin/access-policy?scope=platform" \ -H "Authorization: Bearer $SUPER_ADMIN_TOKEN"
# Switch Audit Export off for Company admins in one workspacecurl -s -X PUT "$BASE_URL/api/admin/access-policy" \ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"organizationId":"<workspace id>","policy":{"off":{"audit-export":["admin"]}}}'
# Why can this person not use things? (the Check access view)curl -s "$BASE_URL/api/admin/access-policy/check?userId=<user id>" \ -H "Authorization: Bearer $ADMIN_TOKEN"The read answers policy (this level), inherited (what the layers above already switched off) and resolved, which for every module says whether each role is allowed and, when it is not, at which layer (offAt: platform, parent or workspace). On your own workspace, familyPeople counts the people in your direct, non-archived sub-tenants by role (null when you have none), because a switch-off there reaches them too. /check answers one entry per feature with four gates (plan, parent, platform, workspace), each open or closed with who can change it. For a company admin, a user id from another workspace answers 403, exactly like an id that does not exist; a super admin gets 404 for an id that does not exist.
Verify it. Sign in as a Company admin of that workspace and call the feature’s API:
curl -s -i "$BASE_URL/api/admin/audit/export?format=json&days=1" \ -H "Authorization: Bearer $COMPANY_ADMIN_TOKEN"# HTTP/1.1 403 ... {"code":"ACCESS_NOT_GRANTED","feature":"audit-export","error":"Audit Export is turned off for your role in this workspace."}The sidebar (GET /api/nav-visibility) is a view over the same policy, so the menu item disappears at the same moment. Changes apply within seconds. Every change is written to Settings → Audit Logs as access_policy.updated. Some rows are menu-only (badged “Menu only”): tabs that belong to no feature module have no API behind them, so the switch hides the entry and there is nothing to refuse.
[SCREENSHOT: the Unsaved changes bar and the trail for a closed cell]
What do the errors mean?
Section titled “What do the errors mean?”| Symptom | Cause | Fix |
|---|---|---|
403 ACCESS_NOT_GRANTED, message ends “…in this workspace.” |
This workspace’s own policy switched the feature off for your role | A workspace admin ticks it in Settings → Roles & features → Access |
403 ACCESS_NOT_GRANTED, message ends “…by your parent workspace.” |
The parent workspace switched it off for its sub-tenants | The parent admin changes it (from the scope picker); the sub-tenant cannot override it |
403 ACCESS_NOT_GRANTED, message ends “…by the platform administrator.” |
The platform layer switched it off for everyone | A super admin changes the Platform defaults scope |
403 FEATURE_NOT_IN_PLAN |
The workspace’s plan does not include the feature | A super admin ticks it in Platform Admin → Plans → Plan features (Edit features on the plan’s ⋯ menu) |
| A switch was turned back on at a lower layer and the API still refuses | A layer above it still has it off; lower layers can only narrow | Open Check access for the person; the closed gate names the layer and who can change it |
| “Access couldn’t be checked. Menus may be out of date until it can.” | The page could not resolve access from the server | Reload; if it persists, check the server log for access-policy warnings. No cells are shown rather than guessed ones |
| A menu entry is off but its API still answers | The row is menu-only (no module behind it) | Expected; nothing to enforce |
| An old toggle now refuses the API after an upgrade | Legacy toggles are migrated once into the platform policy | Look for access-policy-migrated-nav-override in the log; switch it back on at Platform defaults |
Is there a hardened baseline preset?
Section titled “Is there a hardened baseline preset?”There is no one-click preset. Each control is turned on individually: the DLP categories and guardrail scanners your data requires, audit retention, SSO with SCIM de-provisioning, and Settings → Roles & features for each role. The table in Which compliance frameworks are supported? lists which controls matter for which framework.
Can the platform be demonstrated before real keys are wired up?
Section titled “Can the platform be demonstrated before real keys are wired up?”Yes. A demo mode — on by default for new installations and toggleable per user — populates every console surface with realistic generated data: employees, teams, providers, audit records, security events, session history, usage metrics, fleet health, insider-risk standings, and dashboards. Nothing is written to the database, so it is available the moment the image runs, and it can be disabled globally at install time for production.
What is the operational surface?
Section titled “What is the operational surface?”A health endpoint for orchestrator and load-balancer probes; graceful shutdown that flushes in-flight work before closing; automatic schema application and backfill at boot so upgrades need no manual migration; self-healing that reaps stale jobs and re-probes tripped circuit breakers; and diagnostics endpoints for support investigations. Logs and data live on mounted volumes.
Where is everything configured?
Section titled “Where is everything configured?”| What | Where |
|---|---|
| Employees, keys, key type | Employee Management |
| Teams, team budgets, model access | Team Management |
| Budgets and overrides | Budget Management |
| DLP, guardrails, compliance frameworks | Settings → Company Policy |
| Providers, models, pricing | Settings → Providers |
| Gateway routes, tenant routing | Settings → Gateway Routes |
| SSO, SCIM, enrollment portal | Settings → Single Sign-On |
| Event pipeline, database, notifications | Settings → System |
| Audit log | Settings → Audit Logs |
| Organizations, plans, cross-tenant | Platform Admin (super-admin only) |
Which settings are platform-wide and which are per organization?
Section titled “Which settings are platform-wide and which are per organization?”This distinction causes more confusion than any other: a handful of settings are process-wide — the event pipeline, the system LLM, session vector config — because a single process serves every tenant. They are stored on the platform row and can only be written by a super-admin. Everything else is per organization, and a tenant admin owns it.
If a tenant admin saves company settings, the platform fields in that payload are dropped rather than written, and a genuine attempt to change one is refused and recorded in the audit log.
A super-admin with no organization selected is editing the platform row — the defaults every organization inherits. The console names the row on screen so this is never ambiguous.
How do I change a setting safely?
Section titled “How do I change a setting safely?”- Read the current value first (
GETthe settings, or note it in the console). - Change one thing.
- Verify with a real request rather than by re-reading the form.
- If it misbehaves, the audit log has a per-field before-and-after diff — that is your rollback instruction.
Settings are cached briefly (about 30 seconds), so a change is live on the next request without a restart, and a change you make will not appear to take effect instantly on every replica.
Common configuration problems
Section titled “Common configuration problems”| Symptom | Cause | Fix |
|---|---|---|
| A saved setting appears not to apply | The settings cache, or you are on a different organization’s row | Wait ~30s; confirm the scope banner |
| A tenant admin cannot change something | It is a platform-scoped field | A super-admin must change it |
| A settings save throws an error after an upgrade | A settings column did not migrate | Check the upgrade logs; every column has migration coverage in both dialects |
| Model changes do not take effect | The per-organization model projection is cached | Create/update/refresh reload it; re-check GET /v1/models with an employee’s ak_ key |
Can I apply a setting to every organization at once?
Section titled “Can I apply a setting to every organization at once?”Yes, from 2.0.296 — as an explicit action, and it is switched off until you turn it on.
Why it is not automatic. An organization’s settings are read as a whole, not merged field by field with the platform defaults. So an organization that has any settings of its own does not inherit a platform-level value — and that is true of every setting, not a particular one. We deliberately did not change that resolution: for most settings a stored value is indistinguishable from one nobody ever touched, so inheriting would silently re-enable things tenants had turned off.
From the console (2.0.297 and later). Sign in as a super administrator and open Settings -> Company Settings. Directly under the Viewing platform defaults banner is a panel titled Apply platform defaults to all organizations. The panel is visible only to super administrators.
- Tick Allow pushing platform settings to sub-tenants. This is the same
switch as
platformApplyToAllEnabled, it is off on every deployment until you tick it, and the endpoint refuses while it is off. - Choose what to push: Data protection (DLP), Content guardrails (including gibberish labels and thresholds), Model access default, Rate limits, WAF custom rules — or name any other settings field in Other fields.
- Press Preview changes. You get a table of the organizations that would change and the before/after for each field. Nothing is written.
- Press Apply to all organizations and confirm. The panel reports how many organizations were written, and names any that failed.
Note what is not pushed: gateway routes, tenant routing modes and the model
catalog are per-organization records, not settings fields, and are managed on
their own pages per tenant. This action writes Company Settings fields only.
The catalog-facing field that is pushable is defaultModelAccess.
Or over the API (super administrator):
curl -s -X POST "https://<your-agentwatch-host>/admin/company/settings" \ -H "Authorization: Bearer <super-admin JWT>" -H 'Content-Type: application/json' \ -d '{"platformApplyToAllEnabled": true}'See what would change — this writes nothing:
curl -s -X POST "https://<your-agentwatch-host>/admin/company/settings/apply-to-all" \ -H "Authorization: Bearer <super-admin JWT>" -H 'Content-Type: application/json' \ -d '{"fields": ["dlpEnabled", "guardrailsBlockOnViolation"]}'You get the organizations that would change and the before/after for each
field. Re-send with "confirm": true to apply.
| Guard | Behaviour |
|---|---|
| Not a super administrator | 403 |
platformApplyToAllEnabled off |
409 APPLY_TO_ALL_DISABLED |
No fields given |
400 FIELDS_REQUIRED — there is no “apply everything” |
| An unknown field name | 400 UNKNOWN_FIELD |
Without confirm: true |
Preview only; nothing is written |
Each organization that changes gets its own audit entry
(settings.applied_from_platform) recording the fields and their before/after
values. If one organization fails, the rest still apply and the failures are
returned rather than swallowed.
Upgrading: the switch is off on every existing deployment, so nothing propagates until you enable it deliberately.
How are emails branded?
Section titled “How are emails branded?”Every email AgentWatch sends uses one layout: welcome, API key rotated, budget
warning and exceeded, rate-limit alarm, password reset code, people moved to
Employee, alert rule fired, workspace ready, enrollment code, test email and the
provider-key rotation digest. Branding comes from Enrollment Portal → Branding
(name, logo, primary colour, accent colour, support email). Each field is taken
from the recipient’s organization first, then its parent organization (one level),
then the AgentWatch theme; a sub-tenant therefore inherits its parent’s portal name, logo and colours (#262626 / #EC4F31 and the AgentWatch logo).
| Item | What is used |
|---|---|
| Name | The organization’s portal name, else its parent’s portal name, else its own company name (not the default “Your Company”), else its own organization name (not “Platform”), else “AgentWatch”. A parent’s company and organization names are never inherited |
| Logo | The AgentWatch logo shows only for fully unbranded organizations. A branded organization without a usable logo gets its name as the header |
| Button text | Black or white, chosen automatically for contrast with the button colour |
| Colours with transparency | The transparency is removed |
The brand follows the recipient’s organization even when the email goes out through the platform’s sender (budget and key-rotation emails). The welcome and key-rotation emails still include the full API key.
Which logos work? PNG, JPEG, GIF and WebP uploads are embedded in the email and always show.
The portal accepts logo files up to 512 KB. An http(s) logo URL is linked, so the reader’s mail program may block it
until they allow images. SVG and ICO are not supported by mail programs, so the email
shows the name as the header instead.
How do I check it? Open Settings → Company Settings → Email Notifications → Email templates. The preview shows each of the 12 emails with your branding. Super admins also get Preview as to view any tenant. You should now see the logo (or name), colours and button exactly as a recipient will.
The welcome email’s custom message supports only {{name}}, {{companyName}},
{{apiKey}} and {{portalUrl}}; any other placeholder renders empty. The message is
plain text: HTML tags such as <b> or <a> show as text, and a blank line starts a
new paragraph.
| Symptom | Cause | Fix |
|---|---|---|
| Logo missing in the email | SVG/ICO, or an http(s) logo the reader’s mail program blocks |
Upload a PNG, JPEG, GIF or WebP in Enrollment Portal → Branding |
| Email shows “AgentWatch” colours | No branding set on the organization or its parent | Fill in Enrollment Portal → Branding |
| A placeholder shows nothing | It is not one of the four supported in the welcome message | Use only {{name}}, {{companyName}}, {{apiKey}}, {{portalUrl}} |
Sources and references
Section titled “Sources and references”- Deployment prerequisites: Deployment.
- Identity and access in a security context: Security and compliance.