Permission Error When Updating User's Password by JSONWS API
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
-
When updating the User's password through JSONWS API, the following error is reported in the log and the password can not be updated correctly.
01:18:11,468 ERROR [http-nio-8080-exec-2][JSONWebServiceServiceAction:97] User 31929 must have UPDATE permission for com.liferay.portal.kernel.model.User 20156
Environment
Resolution
Common causes of this error:
- Current logged in user does not have permission to update other user's passwords.
- Current logged in user is updating Administrator/Omniadamin's password
To resolve the error:
- Make sure current logged in user has Users > User and Organizations > Resource Permission > User > Update permission.
- Make sure the user (whose password is to be updated) is not an Administrator/Omniadamin.
Did this article resolve your issue ?