You can use the updateUser method. validateUpdateUser will return error if you don't have permission to modify the password.
Jobin, I have tried a lot but still not able to modify the password of an user. I tried by follwing way, please verify and let me the correct way to achive the functionality.
#1. I tried to use UserManager class to update an user (com.atlassian.crowd.embedded.api.User.updateUser()). But here User calss cant be intialized. I thought, I will create an User object with modify the password and update the user. But I failed to do this. Can you tell me how can i create an User object with modified password?
#2. I tried DefaultUserservice (com.atlassian.jira.bc.user.DefaultUserService) class to use updateUser() method, but i am not able to get this Class object and not able to send the parameter (UserService.UpdateUserValidationResult) for updateUser() method. Do you have any example piece of code to achive this functionality.
In jira 4.3 i used below piece of code to modify the password of an user.
Please help me to modify an user password in Jira5.0.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork? We've compiled a list here, along with...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs