Modify the Batch File to Add the User Details

About this task

You can use the PA_UAA_Config_Win.bat file located in the Plant Applications Web Client installation directory to add a Web Client user as a User Authentication Service (UAA) user and set the access level as bm-line-leader or bm-operator. The access levels bm-line-leader and bm-operator are defined in the Plant Applications Administrator. The PA_UAA_Config_Win.bat file associates a user for the access levels as described in the following table.
Access Levels Default User
bm-operator <user name created during installation>
bm-line-leader bm_lineleader_1

Procedure

  1. In the Plant Applications Web Client installation directory, open the PA_UAA_Config_Win.bat file using a text editor.
  2. Depending on the access level, identify each instance of the default user, and then replace the default user with the required user name.
    For example, if the user name is john and you want to define bm_operator as the access level, replace the instances of <user name created during installation> with john as shown in the following table.
    Original Code Snippet Modified Code Snippet
    call uaac user add <user name created during installation> -p test --emails <user name created during installation>@xx.com call uaac user add john -p test --emails [email protected]
    call uaac member add trend_client.read <user name created during installation> call uaac member add trend_client.read john
    call uaac member add trend_client.write <user name created during installation> call uaac member add trend_client.write john
    call uaac member add bm-operator <user name created during installation> call uaac member add bm-operator john
    call uaac member add historian_rest_api.read <user name created during installation> call uaac member add historian_rest_api.read john
    call uaac member add historian_rest_api.write <user name created during installation> call uaac member add historian_rest_api.write john
    Similarly, if the user name is lisa and you want to define bm_lineleader as the access level, replace the instances of bm_lineleader_1 with lisa as shown in the following table.
    Original Code Snippet Modified Code Snippet
    call uaac user add bm_lineleader_1 -p test --emails [email protected] call uaac user add lisa -p test --emails [email protected]
    call uaac member add bm-line-leader bm_lineleader_1 call uaac member add bm-line-leader lisa
  3. Save your changes to the PA_UAA_Config_Win.bat file.

Results

The PA_UAA_Config_Win.bat file is modified with the required user details.