In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/record module, New to NetSuite | N/auth Module Overview, which is used to interact with records. Now, we will take a closer look at one of the members of N/auth: auth.changePassword(options) Method
The auth.changePassword(options) method allows you to programmatically change a user's password within NetSuite. This method changes the current user's NetSuite password through a server-side script. It can be useful for enforcing password change policies or building custom password reset forms.
Syntax
auth.changePassword({
currentPassword: 'mycurrentPWD',