Adding users

Applies to: On premises

You can set up additional user accounts to access the OpenPages® installation app.

About this task

You add users by editing the <install_server_home>/src/db/jsonDB.json file.

Create a backup of the jsonDB.json file before you begin.

When you save the file and restart the installation server, the passwords in the file are encrypted.

This video demonstrates how to add users and update user passwords:

Procedure

  1. Log out of the IBM OpenPages installation app.
  2. Stop the installation server.
    For more information, see Stopping the installation server.
  3. Open the <install_server_home>/src/db/jsonDB.json file in a text editor.
  4. Use the following code as a guide to help you to add user accounts.
    {
      "token": [],
      "user": [
        {
          "name": "admin",
          "password": "{AES}QiTCrj1RuBgvLvKHm32JoQ==",
          "id": "101",
          "encrypted": true
        },
        {
          "name": "<new_user>",
          "password": "<new_user_password>",
          "id": "102"
        },
        {
          "name": "<new_user>",
          "password": "<new_user_password>",
          "id": "103"
        }
      ]
    }
    Note the following requirements:
    • Each user name must be unique.
    • Each user account must have a unique ID.

    The last block (with ID 103 in this example) does not end with a comma.

  5. Save the file and close it.
  6. Start the installation server.
    Windows
    Do one of the following steps:
    • Start the ibmopenpagesinstaller<version>.exe service.
    • Go to the <installation_server_home> directory. For example C:\IBM\OPInstall\OP_<version>_Installer. Right-click the startup.bat file and click Run As Administrator.
      Note: If you do not see the startup.bat script, you can also find it and run it from the <installation_server_home>\install\Windows directory.
    Linux®
    1. Open a shell and go to the <installation_server_home> directory, for example /home/opuser/IBM/OPInstall/OP_<version>_Installer.
    2. Run the following command:
      ./startup.sh
      Note: If you do not see the startup.sh script, you can also find it and run it from the <installation_server_home>/install/Linux directory.

Results

The user accounts are added and the passwords in the jsonDB.json file are encrypted.