You are here

setPassword

setPassword(userName, password) sets the password for the given user. It is executable with Administrator authority only.

Parameters

userName
A string representing the user name of the user to set the password for.
password
A string representing the password to assign for the user specified.

Example

people.setPassword("joe.user", "newpwd");

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.