loading
Preparing LoginRadius developer resources
Mission: Help enterprises accelerate digital transformation with our fully-managed Customer IAM technology.
Skip to main content

Script

Executes a custom JavaScript script configured in the Scripts section. The script receives the lrObject context and can mutate token claims, identity fields, or trigger errors via the hook API.
Logic & Flow Node

Node Card

Script
true
false
Error edges
script-defined codes
Category: Logic & Flow Nodes
Type: script
Typical position: After authentication or profile resolution, to enrich tokens, enforce custom business rules, or integrate with external services via HTTP calls inside the script.

PropertyTypeRequiredDescription
Scriptselect with searchYesThe JavaScript script to execute, selected from the Scripts section of the Identity Orchestration configuration.
DescriptiontextNoOptional label shown on the canvas node to describe what this script does.
Disable Cancel ButtoncheckboxNoWhen enabled, hides the cancel/loading button shown to the user during script execution. Useful for silent background operations.
Error HandlingcustommultiselectNoAdd custom error codes defined by the script using hook.setError(). Each selected code becomes a named output edge on the canvas.

Common Next Nodes

Script (true)Success Finalscript succeeded: continue the flow
Script (false)Failure Finalscript failed or threw an error

Usage Notes

The Script node is the primary extensibility point in Identity Orchestration. Use it to add JWT claim enrichment, call external APIs for attribute lookups, enforce custom password policies, or perform any logic not covered by built-in nodes. Scripts run in a sandboxed JavaScript environment with access to the lrObject and hook context objects.