Modules

filter

 

Objects/Functions

module (N/auth)

SuiteScript 2.0

auth.changeEmail(options)

{auth}.changeEmail({newEmail: {string*},password: {string*},onlyThisAccount: {boolean}})

N/auth Module
auth.changeEmail()
Method Description: Changes the current user’s NetSuite email address (user name).
Returns: void
Supported Script Types: Server scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/auth Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=auth.changeEmail(options)

Example:

// Code Example 1
//Add additional code
//...
auth.changeEmail({
password: 'mycurrentPWD',
newEmail: 'jwolf@netsuite.com',
onlyThisAccount: true
});
//...
//Add additional code

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