Access IDM properties in scripts
User self-service journeys primarily use Identity Management nodes.
Nodes save data in the shared state of journeys. Identity Management nodes save data in the shared state differently than other nodes.
You can extend the functionality of journeys using scripts you write in the Scripted Decision node.
When you use a Scripted Decision node node to access properties saved in the shared state by Identity Management nodes, you must reference the IDM properties using the
For example, to access the first name (
givenName) from the shared state, returned from an Identity Management node, you would use the syntax:
var firstName = objectAttributes.get("givenName").asString();
For information on the shared state, refer to access shared state data.