changePassword

Use the changePassword operation to change a user's NetSuite password.

This topic provides details about how to change a user's password with SOAP web services code. For details about how to make this change in the NetSuite user interface, see Change Password Link and Your User Credentials.

Request

The ChangePasswordRequest type is used for the request.

Element Name

XSD Type

Notes

changePassword

ChangePassword

 

The ChangePassword type takes the following fields:

Response

The ChangePasswordResponse type is used for the response. It does not contain any fields.

Faults

This operation can throw one of the following faults. See SOAP Fault Status Codes for more information on faults.

Sample Code

SOAP Request

                <soapenv:Body>  
         <changePassword xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">   
            <changePassword>    
               <ns6:currentPassword xmlns:ns6="urn:core_2017_1.platform.webservices.netsuite.com">password1</ns6:currentPassword>    
               <ns7:newPassword xmlns:ns7="urn:core_2017_1.platform.webservices.netsuite.com">password2</ns7:newPassword>    
               <ns8:newPassword2 xmlns:ns8="urn:core_2017_1.platform.webservices.netsuite.com">password2</ns8:newPassword2>   
            </changePassword>  
         </changePassword> 
      </soapenv:Body> 

        

SOAP Response

                <soapenv:Body>
         <changePasswordResponse xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">
            <sessionResponse>
               <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/>
            </sessionResponse>
         </changePasswordResponse>
      </soapenv:Body> 

        

Java

          ChangePassword changePW = new ChangePassword();
changePW.setCurrentPassword("password1");
changePW.setNewPassword("password2");
changePW.setNewPassword2("password2");
 
c.getPort().changePassword(changePW); 

        

Related Topics

General Notices