auth.changePassword(options)
|
Method Description |
Changes the current user’s NetSuite password. See Creating a Strong Password for information about valid passwords. |
|
Returns |
void |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
|
Governance |
10 units |
|
Module |
|
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
|
Parameter |
Type |
Required / Optional |
Description |
|---|---|---|---|
|
|
string |
required |
The logged in user’s current NetSuite password. |
|
|
string |
required |
The logged in user’s new NetSuite password. See Creating a Strong Password for information about valid passwords. |
Errors
|
Error Code |
Thrown If |
|---|---|
|
|
The See Creating a Strong Password for information about valid passwords. |
|
|
The |
|
|
The |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/auth Module Script Sample.
//Add additional code
...
auth.changePassword({
currentPassword: 'mycurrentPWD',
newPassword: 'mynewPWD_2*'
});
...
//Add additional code