Zetect Expressions & Transforms Back to zetect.inSwitch portal ⇄

Using Static Values

Send the same value every time, whatever the person's attributes. Zetect has no separate static value source: you write a fixed value as an expression with no tokens, or as a transform.

Applies to

Provisioning mappings, identity source attribute mapping (Expression mode) and the single sign-on NameID (Expression mode).

Required permission

Administrator access to the console, with access to the screen where you edit the mapping.

Setting a fixed value with an expression

An expression with no ${...} tokens is used exactly as you type it.

To send a fixed value from a provisioning mapping:

  1. Open the application and select Provisioning mappings under Map.
  2. Select Add Mapping and choose the Account Attribute.
  3. In Source, choose Expression.
  4. In Value, type the fixed value, for example ACTIVE.
  5. In Send on, choose when to send it, for example Create only.
  6. Select Save Mappings.

Every account Zetect creates or updates from then on receives the value, as set by Send on.

Expression:  OU=Users,DC=example,DC=com
Result:      OU=Users,DC=example,DC=com

Setting a fixed value with a transform

Inside a transform you rarely need a separate fixed-value step. Wherever a transform expects a value, such as then, else, default or a lookup result, plain text is used as it is. When you want a whole transform that returns one value, use the static type.

{ "type": "static", "value": "ACTIVE" }
→ ACTIVE

A fixed value inside a transform can still contain tokens. "${department}-users" gives Finance-users for a person in Finance. See static.

Choosing where to put a fixed value

You wantUse
The same value for every accountAn Expression with no tokens.
A fallback when data is missingA transform's default, for example on lookup or decision.
One of two fixed values depending on an attributeAn if transform. See if.
A fixed NameID for every user of an applicationSubject Attribute (NameID) in Expression mode with no tokens.