Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

runtime.getCurrentUser()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.getCurrentUser() for more information.

N/runtime Module
runtime.getCurrentUser()
Method Description: Returns a runtime.User object that represents the properties and preferences for the user currently executing the script. Use this method to get session objects for the current user session. If you want to get properties for the script or session, use runtime.getCurrentScript() or runtime.getCurrentSession() instead.
Returns: runtime.User
Supported Script Types: Client and server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/runtime Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.getCurrentUser()

Example:

// Code Example 1
// Add additional code
//...
var userObj = runtime.getCurrentUser();
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296529105.html