Search

Impersonation

System admins can impersonate an organization to operate within its context. While impersonating, all requests are executed as if the system admin belongs to the target organization, with full read and write access to its resources.

Impersonation is available via the CLI and API. UI support is not yet available.

Constraints

  • Only system admins can impersonate.
  • Only one organization can be impersonated at a time. The current impersonation must be stopped before starting another.
  • A system admin cannot impersonate their own organization.
  • Locked organizations cannot be impersonated.

Usage

Starting impersonation switches the session to the target organization context. All subsequent requests operate within that organization until impersonation is stopped, which restores the original session. The whoami endpoint shows whether impersonation is active and which organization is being impersonated.


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203