Skip to content

qie.getSessionUserId

Signature: qie.getSessionUserId(sessionId)

Returns: String userId - the authenticated QIE User ID or the authenticated user ID provided by a custom authentication script

Returns the authenticated user ID stored in the session.

Note

This call is ONLY available if your channel source is 'HTTP Listener' and you have 'Require User Authentication' selected in the 'HTTP Configuration' tab of the source node. It's primarily used to protect channels that serve forms for processing data.

Parameters

Type Name Description Default
String sessionId the session ID to pull the authenticated user ID from

Example

var authenticatedUserId = qie.getSessionUserId(message.getNode("/SessionID")); // e.g jsmith