module (N/runtime)

SuiteScript 2.0

// Please search for more information.

N/runtime Module
Property Description: The internal ID of the currently logged-in contact.  If no logged-in entity or other entity than contact is logged in, then 0 is returned as value.
Type: number (read-only)
Supported Script Types: Client and server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/runtime Module
Since: 2019.1
Search NetSuite -


// Code Example 1
// Add additional code
var userObj = runtime.getCurrentUser();
log.debug('Internal ID of current contact: ' +;
// Add additional code