Additional SAML Attributes not Present in event.user in Post-Login Action

Problem statement

Additional SAML attributes not present in event.user in post-login action.

Solution

Attributes that are not explicitly mapped to the user profile will not show in the event.user object if the runtime is node16 or node18 (beta). Upgrade the action to use the node18-actions runtime instead. This can be done by using the management API:

curl -X PATCH [https://<tenant>.auth0.com/api/v2/actions/actions/<action](https://%3Ctenant%3E.auth0.com/api/v2/actions/actions/%3Caction) id> -H "Authorization: Bearer $TOKEN" -d '{"runtime": "node18-actions"}' -H 'Content-Type: application/json'