CLI cookbook: how to change environment user
ssh into your engine using Admin privileges
CODEssh admin@delphix
Go to Environment and find the Environment you would like to update
CODEdelphix > environmentdelphix environment > lsdelphix environment > select test_env
Select Environment updating and Update
CODEdelphix environment "test_env" > updatedelphix environment "test_env" update *> ls
Set
primaryUser
to new user you would like to use for the Environment (NOTE: new user should be added as an environment user before making as a primaryUser)CODEdelphix environment "test_env update" *> set primaryUser=<new user>
Commit the operation.
CODEdelphix environment "test_env" update *> commit
Example:
CODE
ssh admin@delphixdelphix > environmentdelphix environment > ls ObjectsNAME DESCRIPTIONDemo ChildrenoracleuserOperationscreate delphix environment > select Demodelphix environment "Demo" > updatedelphix environment "Demo" update *> ls Properties type: UnixHostEnvironment name: Demo description: primaryUser: delphix delphix environment "Demo" update *> set primaryUser=<new user>delphix environment "Demo" update *> commit