Organization tokens become available in Skillable Studio on 4 December 2026. Until then, the features on this page won’t appear in Studio until then.

Using organization tokens in labs

Prev Next

Organization tokens are shared values stored on an organization in Skillable Studio. You use them in a lab by typing @lab.LabOrganization.TokenName, and the lab replaces the reference with the token's value when it launches. Standard tokens work in lab instructions and scripts.

A secure token holds a credential. Its value is write-only: it can't be viewed after it's saved, and it can only be used in Life Cycle Actions and automated activities. That keeps credentials out of anything a learner can see.

To create and manage tokens, see Managing organization tokens.


Why it matters

A token lets every lab in an organization share one value instead of carrying its own copy. When the value changes, you update the token once and every lab uses the new value at its next launch. Secure tokens let your scripts sign in to external services without the credential ever appearing in instructions or on a learner's screen.


Who can use organization tokens in a lab

Anyone who can edit a lab profile's instructions or Life Cycle Actions, or manage its automated activities, can add organization token references there. You don't need any organization token permission to use a token, only to create or change one.

The tokens available to a lab are the ones on the lab profile's organization, including tokens inherited from organizations above it. They don't depend on the organization of the person who launches the lab.


Getting started

  1. Open the lab profile and edit its instructions, a Life Cycle Action script or an automated activity script.
  2. Type @lab. where you want the value.
  3. Pick the token from the IntelliSense list. Organization tokens appear by name, with their description.
  4. Save, then launch the lab to see the value in place.

You can also type the full reference yourself, for example @lab.LabOrganization.ApiEndpoint. The name must match the token exactly.

Life Cycle Action script editor with @lab.LabOrganization. typed. IntelliSense lists three organization tokens, and the details pane for the selected secure token says it is only usable within scripts. Callouts mark 1, the typed prefix; 2, the token suggestions; 3, the details pane.

  1. Type @lab.LabOrganization. to list only organization tokens.
  2. The organization's tokens, standard and secure, including inherited ones.
  3. The selected token's description. For a secure token, a note says it can only be used in scripts.

Where tokens resolve

Where you use the token Standard token Secure token
Lab instructions, at launch ✅ Value shown ❌ Stays as literal text
Instructions preview while authoring ✅ Value shown ❌ Stays as literal text
Life Cycle Action scripts ✅ ✅
Automated activity scripts ✅ ✅
Life Cycle Action web requests and emails ✅ ❌ Stays as literal text
Webhooks and the replacement tokens API ❌ ❌

"Stays as literal text" means the lab shows @lab.LabOrganization.TokenName exactly as typed, with no value and no mask.


Use standard tokens in lab instructions

Standard tokens work like any other replacement token in instructions. They resolve when the lab launches and in the authoring preview.

To find them while you write:

  • Type @lab in the instructions editor and pick the token from IntelliSense.
  • Open the Tokens sidebar (the @ icon) and select the Lab Organization filter.

Each token is listed with its name and description. Secure tokens never appear in the instructions editor.

Tokens sidebar in the instructions editor with the Lab Organization filter selected, showing two standard organization tokens with their descriptions. Callouts mark 1, the Lab Organization filter; 2, the listed tokens.

  1. Select the Lab Organization filter to show only organization tokens.
  2. The organization's standard tokens, with their descriptions. Secure tokens aren't listed here.

Use tokens in scripts

Life Cycle Action and automated activity scripts can use both standard and secure tokens. This is the only place secure tokens resolve.

  • IntelliSense in both script editors lists the organization's tokens, standard and secure, including inherited ones, by name and description. A secure token's description ends with a note that it's only usable within scripts and never appears in lab instructions.
  • IntelliSense for @lab tokens works in every Life Cycle Action script language, including Bash, Python, JavaScript, PHP, Go and C#, as well as PowerShell and batch.
  • Token values are never sent to the editor. You see names and descriptions only.

Because a secure value is inserted into the script when it runs, write your script so it doesn't print or log the value.


Which value a lab gets

When a lab launches, each token takes its value from the closest organization that sets one:

  1. An override on the lab profile's own organization, if there is one.
  2. Otherwise, an override on the nearest organization above it.
  3. Otherwise, the value on the organization that owns the token.

A lab variable with the same name never changes an organization token. Tokens are read-only inside a running lab.

Changes to a token or override reach each lab at its next launch, without a restart.


Common scenarios

Pointing every lab at a new environment

Your labs' instructions tell learners to open @lab.LabOrganization.PortalUrl, and a Life Cycle Action script configures the same URL on the lab's virtual machine. When the environment moves, an admin edits PortalUrl once. Every lab launched afterward shows the new URL in its instructions and configures it in the script.

Signing in to a partner service from a script

A Life Cycle Action script calls a partner API with @lab.LabOrganization.PartnerApiKey, a secure token. The script receives the key when it runs. If an author also types the reference into the instructions, learners see only the literal text, never the key.


Tips and best practices

  • Use standard tokens for values learners are meant to see, such as URLs and account names, and secure tokens for anything they aren't.
  • Pick tokens from IntelliSense or the Tokens sidebar instead of typing them, to avoid misspelled names.
  • Don't echo, print or log secure values in your scripts.

If something doesn't work

My instructions show @lab.LabOrganization.TokenName instead of the value

Check these in order: the token is secure (secure tokens never resolve in instructions); the name is misspelled; the token doesn't exist on the lab profile's organization or any organization above it; or the token was deleted. Deleting a token doesn't remove references to it from your labs.

A token I expected isn't in IntelliSense or the Tokens sidebar

The instructions editor lists standard tokens only. Secure tokens appear only in script editors. Also check that the token belongs to the lab profile's organization or one above it.

The lab is still using the old value

Token changes reach labs at their next launch. Launch the lab again to pick up the new value.

A different organization's labs get a different value

That organization, or one above it, has an override. Check its Tokens section for a token labeled Overridden.

My web request or email action doesn't get the secure value

Secure tokens resolve only in Life Cycle Action and automated activity scripts. Move the step into a script.


Limitations

  • Secure tokens can't be shown in lab instructions, Life Cycle Action web requests or emails.
  • Organization tokens aren't included in webhooks or the replacement tokens API.
  • A lab can't change an organization token's value while it runs.