Skip to main content
Skip table of contents

CLI cookbook: how to change environment user

  1. ssh into your engine using Admin privileges

    CODE
    ssh admin@delphix
  2. Go to Environment and find the Environment you would like to update 

    CODE
    delphix > environment
    delphix environment > ls
    delphix environment > select test_env
  3. Select Environment updating and Update

    CODE
    delphix environment "test_env" > update
    delphix environment "test_env" update *> ls
  4. Set primaryUserto 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)

    CODE
    delphix environment "test_env update" *> set primaryUser=<new user>
  5.  Commit the operation.

    CODE
    delphix 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
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.