cancel
Showing results for 
Search instead for 
Did you mean: 

set user password to a default value Test

gvarathan
Champ in-the-making
Champ in-the-making
HI,
I do not have a old password of a user, and i want to set the password to a default password of "Test".

can i know, which api to call.

1 REPLY 1

muralidharand
Star Contributor
Star Contributor
Hi,
If you're belongs to alfresco administrator group then you should be able to do it.
Please have a look at api/person/changepassword webscript.


C:\Alfresco411\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\person\changepassword.post.desc.xml


Webscript:
If you're an administrator then just specify the new password to reset it.

Post Method : http://localhost:8080/share/proxy/alfresco/api/person/changepassword/<userId>
Param : {"newpw":"yournewpassword"}

Java API:
If you want to use java API then use authenticationService API.


authenticationService.setAuthentication(userName, newPassword.toCharArray());


Hope this helps you.