Forum Discussion
lowone
Nimbostratus
Nov 21, 2019REST API example change password
I need to change the password for admin and root accounts on our big-ip servers. I found this api end point but need more info on the parameters or a working example. https://clouddocs.f5...
jaikumar_f5
Noctilucent
Nov 24, 2019Something like below should do the trick,
curl -sk -u useraccount -H "Content-Type: application/json" -X PATCH https://hostname/mgmt/tm/auth/user/useraccount -d '{ "password": "newpassword" }'
Once above is it will prompt for existing password and the change will reflect. The user will have the newpassword set as password.
If you'd need you can send the existing password in the query too.
curl -sk -u useraccount:oldpassword -H "Content-Type: application/json" -X PATCH https://hostname/mgmt/tm/auth/user/useraccount -d '{ "password": "newpassword" }'
Hope this helps.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects