How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?

  • 0
  • 1
  • Question
  • Updated 2 weeks ago
  • Answered
How to reset the sysadmin and delphix admin password with 3rd party tool? or with API?
Steps:

Suppose we need to change the password for sysadmin and delphix admin every month as security reason  then how we can do it with 3rd party tool like cyber ark or any other tools?

Sysadmin and delphix Admin user are non LDAP users.

If we have API to reset the password please let me know or let me know complete process 
Photo of pankaj

pankaj

  • 492 Points 250 badge 2x thumb

Posted 3 weeks ago

  • 0
  • 1
Photo of Jatinder Luthra

Jatinder Luthra, Employee

  • 2,694 Points 2k badge 2x thumb
Hello Pankaj,
                   Login as delphix_admin, and get user reference for both users by running below command.

dlpx-vm> user list display=name,reference

NAME           REFERENCE

sysadmin       USER-1

delphix_admin  USER-2 


To change the delphix_admin password, log in as the delphix_admin user and use below API call.

POST /resources/json/delphix/user/USER-2/updateCredential

{

    "type": "CredentialUpdateParameters",

    "newCredential": {

        "type": "PasswordCredential",

        "password": "<newpassword>"

    }

}


To change sysadmin password, log in as the sysadmin user and use below API call.

POST /resources/json/delphix/user/USER-1/updateCredential

{

    "type": "CredentialUpdateParameters",

    "newCredential": {

        "type": "PasswordCredential",

        "password": "<newpassword>"

    }

}

~Thanks
Jatinder
Photo of pankaj

pankaj

  • 492 Points 250 badge 2x thumb
Hi Jitinder.

Could you please tell me exact CURL command for the  to chnage or to reset the password ?
Photo of Jatinder Luthra

Jatinder Luthra, Employee

  • 2,694 Points 2k badge 2x thumb
Hello Pankaj,
                    Please try using below curl command.


curl -X POST -k --data @- http://<engineaddr>/resources/json/delphix/user/USER-2/updateCredential \
-b cookies.txt -H "Content-Type: application/json" <<EOF

{ "type": "CredentialUpdateParameters", "newCredential": { "type": "PasswordCredential", "password": "<newpassword>" } }
EOF


~Thanks
Jatinder
(Edited)