Skip to content

User

The user node attaches a user object to msg.payload or msg.user.

ModeBehavior
AutoReads msg.req.ctx.user from the authenticated HTTP request context.
Selected userUses the user object saved when the node was configured.

Auto mode is intended for flows downstream of an HTTP In node in a Smartunit request pipeline. Without msg.req.ctx.user, the result is undefined.

Choose where the user is written:

  • msg.payload
  • msg.user

The rest of the incoming message is preserved.

The resolved object can include fields such as:

  • id
  • name
  • email
  • phone
  • isActive
  • subscription

A selected user is stored with the flow configuration as a static value. If the user record changes, reselect and redeploy the node when the flow needs the updated snapshot.

User records can contain personal data. Pass only the fields needed by later nodes, and avoid writing full user objects to debug or logger nodes without a clear operational need.