Product docs

Account Switcher for WebCentral

Administer Account Switcher

Install the SQL objects, load the licence, write the role allowlist, use the picker, banner, role change and restore, kill switch and audit log.

Archibus customer administratorsDatabase administrators

Last updated

Administer Account Switcher

SQL install

Account Switcher keeps its audit log and procedures in a switcher schema in your WebCentral database. Back up the database first, then apply the scripts from the package’s overlay/migrations folder in order, each as a whole session (for example sqlcmd -i <script>), over a TLS connection that validates the server certificate:

ScriptWhat it adds
001_install.sqlswitcher schema, switcher.audit table and the core procedures
002Activity eligibility checks
003Actor group freshness; only needed for the optional WebCentral-password sign-in
004Database-side allowlist tables and the audit source column
005Execute permissions for the service login

Before running 005, create a dedicated SQL login switcher_service and keep its password in your secret manager. It can only execute the named procedures, and is explicitly denied direct reads and writes on the WebCentral and switcher tables. Never reuse WebCentral’s own SQL login. On Windows with integrated authentication, create the login for the machine account DOMAIN\HOST$, which the service uses on the network.

Licence

Place account-switcher.ismlic in the folder set by ism.account-switcher.licence.dir, and set license_public_key_file to the ISM public key. Check it offline:

check-license -license account-switcher.ismlic -public-key ism-license-public.pem

The service checks the licence at startup and refuses to start if it is missing, unreadable, altered, expired, for another product or for another customer. It logs a clear message and exits with an error; on Windows it also writes an Application event log entry (source AccountSwitcher). While the service runs, each new open, role change, ticket redemption and switched page request is checked again. If the licence expires, those are refused, but ending sessions and restoring roles keep working. Contact ISM at info@ism-corp.us to renew.

Role allowlist

admin_group decides who may use the switcher at all. Who may open whom is decided by the policy file named in policy_file:

{
  "admin_actors": ["ADMIN"],
  "grants": [
    {
      "actor": "ADMIN",
      "targets": ["TARGET"],
      "target_roles": [],
      "change_to_roles": []
    }
  ]
}
  • admin_actors may use the settings and kill pages.
  • Each grant lists the exact target user names an actor may open. There are no wildcards.
  • target_roles optionally limits the grant to targets with those current roles.
  • change_to_roles lists the roles the actor may assign. Leave it empty for open-only.

The service will not start without a policy file. Product admins can edit the rules on /settings. To enforce the same rules in the database as well, arm the database allowlist from migration 004 (switcher.db_policy_state.policy_enabled); both layers must then allow.

Users with a termination date, a blank role, or no role processes are not eligible and are not listed.

Everyday use

  • Picker (admin hostname): search the users you are allowed to open, then Open or Change role.
  • Acting-as banner: switched WebCentral pages show the user you are acting as and a Switch back button. Opening another user logs the previous WebCentral session out, so it does not hold a licence seat.
  • Sessions (/sessions) shows your active sessions. A switched session ends after 30 minutes.
  • Change role: choose the new role, review the change, tick the confirmation and apply within 5 minutes. Restore puts the old role back only if nobody has changed it since.

Kill switch

Create the file named in kill_switch_file to stop all new opens, role changes and switched page requests (HTTP 503). Delete it to resume. Product admins can also pause switching or end all sessions from /kill. While it is on, ending sessions and restoring roles still work. If the path cannot be read, the switcher treats it as on.

Audit log

Every action and refusal is written to switcher.audit: actor, target, project, old and new role, action, outcome (for example session_opened, applied, restored, policy_denied, kill_switch, ended, licence refusals) and UTC time. The service log also writes one switcher-audit line per event. /audit shows recent events. Nothing deletes audit rows; export them to your SIEM and apply your own retention.

Done When

  • Migrations 001 to 005 are applied in order and the service uses the switcher_service login.
  • policy.json lists each administrator's exact targets and assignable roles.
  • You can find an open and a role change in switcher.audit.