Skip to content

Check who automated work runs as, step by step

Jobs, workflows and scripts run as a chosen user, every borrowed identity is logged with who really started it, and rules can forbid the ones that matter.

3 steps·2 min read·Security

Know who automated work really ran as and who started it, and forbid the identities that matter.

What it is

  • Scheduled jobs, workflows, plugin scripts, custom actions and ribbon buttons each carry a Run As user; Builder → Scheduled Jobs shows it in a column.
  • Impersonation Logs: one row per use, with the Initiating User (who really started it), the Run As User, the Source and its record.
  • Run As Rules: forbid running as a given user when a person, or an agent, started the work, optionally for one table.

Good to know

  • A person who is still the Run As of something active cannot be deactivated until it moves to someone else.
  • Every audit row keeps both names, the starter and the identity the write ran as.
  • No rule exists on this office yet, so the rules list is empty in the screenshot.

Before you start

  • Work that runs on its own (a scheduled job, a workflow, a plugin script, a custom action, a ribbon button) runs as a chosen user, its Run As. Every use is logged with the real person or agent who started it, and rules can forbid running as certain users.
  • Here you read the Run As of the office's scheduled jobs, the log of borrowed identities, and the rules list.

1See who each job runs as

Go to Builder → Scheduled Jobs. The Run As column names the identity each job works as: System for Codossier Office's own platform jobs, an office account for the office's own (here Connector grant expiry runs as Codossier Office Admin). Open a job to change its Run As; workflows, plugin scripts, custom actions and ribbon buttons carry the same setting on their own screens.

A person still named as the Run As of something active cannot be deactivated until it is moved to someone else.

Check who automated work runs as, step 1: See who each job runs as (The identity it works as; An office job; Runs as this account)
1The identity it works as2An office job3Runs as this account

2Every borrowed identity is logged

Each time something runs as another user, Codossier Office writes an Impersonation Log row: the Initiating User (who or what really started it: a person, Coin, or a service account such as the office's developer tool), the Run As User (whose rights it used), the Source (plugin script, plugin step, workflow, job) and the record it came from. Open the Impersonation Logs table from the left panel (type its name in Search tables). It answers "who really did this?" when a change carries a service account's name.

Check who automated work runs as, step 2: Every borrowed identity is logged (Who really started it; Whose rights it used; What ran)
1Who really started it2Whose rights it used3What ran

3Rules that forbid a Run As

Run As Rules say when running as a user is not allowed: each names a Run As User and whether it applies when a person or an agent started the work, optionally for one table. Press New to add one. This office has none yet, so every Run As is allowed and logged.

Check who automated work runs as, step 3: Rules that forbid a Run As (Add a rule; The user it protects; Started by a person)
1Add a rule2The user it protects3Started by a person

What next