Apigee Edge Private Cloud: Changing the sysadmin email

When Apigee Edge Private Cloud is installed, a special sysadmin user is created. This user's email address (user ID) is stored in a few key places in the system configuration and it is used for administrative actions such as creating additional users and executing system-level scripts. If you want to change the email address of the system user, the following steps are required:

1) Update the sysadmin email address in the LDAP user directory.

2) Update the sysadmin email address in the Apigee environment settings file.

3) Update the sysadmin email address in the Apigee Enterprise UI configuration file.

First, update the existing sysadmin user with a new email address using the following curl command on the management server:

> curl -iu <current_sysadmin_email> 'http://localhost:8080/v1/users/<current_sysadmin_email>' -X PUT -d '{"emailId": "<new_sysadmin_email>", "lastName": "admin", "firstName": "admin"}' -H content-type:application/json

If you want to use an entirely separate user instead of changing the existing sysadmin user, simply ensure that the new user is assigned to the global sysadmin role:

> curl -iu <current_sysadmin_email> 'http://n1:8080/v1/userroles/sysadmin/users' -X POST -d 'id=<new_sysadmin_email>'

Next, update the stored sysadmin email in the environment settings file on every Apigee host. In apigee4/bin/apigee-env.sh, change the ADMIN_EMAIL variable to your desired value. Ensure that the update is made across the entire cluster.

Finally, run the apigee4/bin/chpasswd-system.sh script on every Enterprise UI host to store the new user ID in your Enterprise UI configuration. This script will pull the new sysadmin email address from apigee-env.sh, update the UI configuration and restart the UI service.

For additional details, reference the section "Adding a system administrator" in the Private Cloud Operations Guide.

Comments
sgopalam
New Member

Optionally you can do this using Apigee provide setup utility if you are on 16.01.xx version and above.

1. Edit the silent config file that you used to install the Edge UI to set the following properties: ADMIN_EMAIL=newUser

APIGEE_ADMINPW=newPW

SMTPHOST=smtp.gmail.com

SMTPPORT=465

SMTPUSER=foo@gmail.com

SMTPPASSWORD=bar

SMTPSSL=y

Note that you have to include the SMTP properties when passing the new password because all properties on the UI are reset.

2. Use the apigee-setup utility to reset the password on the Edge UI from the config file:

> /opt/apigee/apigee-setup/bin/setup.sh -p ui -f configFile

Not applicable

Hi - Complete details of changing sysadmin, user add and other details are available at the below link

http://docs.apigee.com/private-cloud/latest/managing-users-roles-and-permissions#changingthedefaults...

Version history
Last update:
‎06-30-2015 07:55 AM
Updated by: