Skip to main content
Build and run

Automation Identities

An identity is a service account that belongs to your organization. It holds its own key for each connector, and any number of automations can run as it. When you replace one of its keys, every…

Written By Christopher Scaminaci

Last updated 1 day ago

An identity is a service account that belongs to your organization. It holds its own key for each connector, and any number of automations can run as it. When you replace one of its keys, every automation that uses it uses the new key.

An automation that runs only as an identity uses that identity's keys and nothing else. It never uses a person's sign-in, and it never uses an organization connection that the identity was not given. A connector the identity holds no key for is refused.

Open Automations, then Identities.

Who can do what

PersonCan
Owner or administratorAdd, rename, turn off and delete an identity, add and remove its keys, say who may use it, set its tool limit, and set any automation to run as it
Member with automation builder accessSet their automations to run as an identity that names them. They see its name and connectors, and nothing of its keys.
Anyone elseCannot add, change or choose one.

Members cannot put their own keys on an automation. Ask an owner or administrator to add the key to an identity, and to allow you to use it.

An automation cannot change an identity, its own included.

Add an identity and its keys

  1. Under Identities, enter a name and select Add identity. Use a name that says what it is for, such as "Ticket triage".
  2. Open the identity.
  3. Under Add a key, choose the connector. For a connector with several connections, choose which one the key is for.
  4. Enter the key, or sign in as the service account, as the form asks. StackJack checks the key with the vendor and stores it encrypted. It is not shown again.

Use a service account at the vendor, with only the permissions the work needs. What that account may do at the vendor is what every automation on the identity may do.

To use a connection your organization already has, choose it under Use an organization connection and select Use it. No key is copied: the identity uses that connection as it is, and removing it from the identity leaves the connection alone. When that connection is one person's own sign-in, only an account owner can give it to an identity.

Some connectors have no key of their own here, because each is connected once for the whole organization on the Connectors page: Employment Hero, QuickBooks Online, Moovila Perfect Project, Jira Service Management and Reddit Ads. Give the identity the organization's connection instead. An account owner does that; for Moovila Perfect Project an administrator can too.

For Autotask and ConnectWise PSA, the identity page also has Who it is inside the vendor: the Autotask resource id or the ConnectWise member id its work is recorded under, one for each connection. A ConnectWise member id has an effect only while the experimental member ID option of that connection is on.

Set an automation to run as an identity

In the advanced builder, open Capabilities, then Run as. Choose the identity under As an identity, and save. The automation then runs only as it, and the person who was chosen is taken off in the same save.

You can also ask for it in the chat builder ("run it as Ticket triage") and from your own AI assistant.

To go back, choose a person or This tenant under Run as, and save.

  • A member can only pick tools they have. When a member sets an automation to run as an identity, or adds tools to one that does, every tool must be one the member may use themselves. Ask an owner or administrator to add the others. An owner or administrator is not limited this way.
  • A live automation follows the approval setting: a member's change waits for an owner or administrator.
  • While the replacement of a key is not finished, nobody can approve a change for an automation that runs as the identity. An owner or administrator must save that key again or remove it. Then request the change again.
  • A staging copy runs as the same identity as the automation it was copied from, when that automation runs only as one. A request to deploy such a copy must be made again when a key of the identity was added, replaced or removed since.

Automations that had their own keys

Automations that had their own keys before identities existed were moved for you. Each has an identity named after it (for example "Nightly triage identity") that holds the same keys. Nothing was entered again, and no automation changed what it can do.

Such an automation shows Runs as a person or the organization, with its identity: a connector the identity holds a key for uses that key, and the rest use the choice under Run as, as before. Select Run only as and the identity's name in the builder to use the identity alone. Check first that it holds a key for every connector the automation uses.

For the first hour after the release the page can say "StackJack is moving this region's automation credentials. Try again in an hour." Automations run as normal in that time.

Limit what an identity may call

Under Tool limit, choose Only the tools of these roles and pick one or more custom roles. Everything that runs as the identity may then call those tools at most. An automation keeps its own, narrower list.

Choose No tools to stop every connector call without removing a key. If the roles of a limit are deleted, the limit stays and allows no tools until you choose another.

Turn off, replace and delete

  • Turn off stops every automation that runs as the identity: a run that is going is refused its connectors at the next call, and no new run starts. Its keys stay. Use it when a key may be exposed.
  • Replace a key by adding the connector again. Every automation uses the new key at its next call.
  • Revoke removes one key. The page says how many automations stop having that connector.
  • Delete works only while no automation uses the identity; the page lists the ones that do. Its keys are removed with it. This cannot be undone. If a deletion was interrupted and an automation uses the identity by then, the identity is turned off instead and keeps its keys.

When a key stops working, StackJack turns that key off after repeated failed checks and sends one email to the owners and administrators. The email names the identity, the connector and the automations that use it. The key is never sent.

Every change is kept in History on the identity's page, with who made it.

Messages and what to do

Message or codeWhat it meansWhat to do
"This automation runs only as ..., which has no ... connection."The identity holds no key for that connector.Add one on the identity's page.
"This automation runs as ..., which is turned off."The identity is off, being deleted, or gone.Turn it on, or choose another identity.
"This automation runs as a person, and its own StackJack key does not name that person, so it can use no connector."A change of who it runs as did not finish.Use Re-sync agent on the automation.
"Who this automation runs as was not changed."The instructions and the knowledge together are too long, so only the other edits were saved. If the message says so, the tool changes were not saved either.Shorten them, then choose the identity or person, and the tools, again.
"Nothing of this deploy was saved, because it also changes who the automation runs as."The same limit, on a deploy of a staging copy.Shorten them in the copy, then deploy it again.
SJ-IDENTITY-KEY-REPLACINGThe replacement of one key of the identity did not finish, so nothing was approved.An owner or administrator saves that key again or removes it. Then request again.
"This automation runs as ..., which uses one ... connection and cannot use another."The call named another connection than the identity's.Leave the connection out. The identity always uses its own.
"StackJack could not read the Autotask resource of ..., so nothing was sent to Autotask."A short fault. Nothing was changed in Autotask.Try the call again in a few seconds.
"This link was used already or has expired, or it belongs to another organization."A one-time link works once, for 30 minutes, in the organization it was made for.Switch to that organization and open it again, or ask for a new link.
"This link is for the ... connection ..., which your organization does not have now."The connection the link was made for is gone.Ask for a new link.
SJ-RUN-IDENTITYThe run did not start, because the identity cannot serve it.The same.
SJ-IDENTITY-STAMP-001The automation's own StackJack key does not match it.Use Re-sync agent on the automation. If it stays, contact support with the code.
SJ-IDENTITY-TOOLSThe automation has tools the member does not have.Remove the named tools, or ask an owner or administrator to save it.
SJ-IDENTITY-NOT-ALLOWEDThe identity does not name that member.Ask an owner or administrator to allow the member.
SJ-IDENTITY-IN-USEAutomations use the identity, so it cannot be deleted.Set them to another identity first.
SJ-IDENTITY-CONCURRENTSomebody changed the identity at the same moment.Open it again and repeat the change.
SJ-IDENTITY-LINK-UNAVAILABLEA one-time link could not be made.Try again in a few minutes, or open the identity in StackJack.
SJ-IDENTITY-NOT-LINKEDThe key is stored, but the save did not finish.Save the same key again.