You are here

setPassword

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

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");