ForgeRock Identity Platform 7.3

Scripting tips

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 objectAttrbutes object.

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.

Copyright © 2010-2024 ForgeRock, all rights reserved.