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 > environment delphix environment > ls delphix environment > select test_env
Select Environment updating and Update
CODEdelphix environment "test_env" > update delphix 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@delphix
delphix > environment
delphix environment > ls
Objects
NAME DESCRIPTION
Demo
Children
oracle
user
Operations
create
delphix environment > select Demo
delphix environment "Demo" > update
delphix 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