CLI cookbook: how to change a Delphix user password
The default domain user created on Delphix Engines is now admin instead of delphix_admin. When engines created before 5.3.1 are upgraded to 5.3.1 or later they will retain their old username 'delphix_admin'. To avoid complications Delphix recommends creating users with an admin role and then Disabling delphix_admin.
ssh into your engine with a user that has Admin privileges.
CODEssh admin@delphix
Go to Users and select the User you would like to change the password of.
CODEdelphix > user delphix user > ls delphix user > select example_user delphix user "example_user" > ls
Select
updateCredential
to allow you to change the password and set a new password.CODEdelphix user "example user" > updateCredential delphix user "example_user" updateCredential *> set newCredential.password=<new password>
Commit the operation.
CODEdelphix user "example_user" updateCredential *> commit
Example:
CODEssh admin@delphixengine delphixengine > user delphixengine user > ls Objects NAME EMAILADDRESS sysadmin - admin no@delphix.com test_user no@delphix.com Operations create current delphixengine user > select test_user delphixengine user "test_user" > ls Properties type: User name: test_user authenticationType: NATIVE credential: type: PasswordCredential password: ******** emailAddress: no@delphix.com enabled: true firstName: (unset) homePhoneNumber: (unset) isDefault: true lastName: (unset) locale: en_US mobilePhoneNumber: (unset) passwordUpdateRequested: false principal: test_user publicKey: (unset) reference: USER-2 sessionTimeout: 30min userType: DOMAIN workPhoneNumber: (unset) Operations delete update disable enable updateCredential delphixengine user "test_user" > updateCredential delphixengine user "test_user" updateCredential *> set newCredential.password=<new password> delphixengine user "test_user" update *> commit