Line of business (LOB)

This topic describes how to add and assign permissions to an line of business (LOB) user.

An LOB represents a business group that requires access to secrets from the Vault/Privilege Cloud. This enables segregation of duty (SoD). The LOB facilitates the syncing of accounts to Conjur. For more information, see Vault Synchronizer overview > How does it work?

Add an LOB

You can add LOBs before or after running the CyberArk Vault Synchronizer.

Adding an LOB requires adding a user and an account for the LOB user. If you are working with PAM - Self-Hosted 11.4 and later or with Privilege Cloud, you can use the GenerateLOBs script (recommended) to add LOBs. The script adds the LOB user and account for you.

Alternatively, you can add LOBs manually (all versions of PAM - Self-Hosted and Privilege Cloud).

  1. Prerequisites:

    • PAM - Self-Hosted only: The machine where you are running the GenerateLOBs script requires a trusted certificate for the PVWA. To ensure that this certificate is trusted by the machine, the certificate must be added to the machine's LocalMachine\Root certificate store. We recommend you do this manually before you run the script. Alternatively, you can authorize the script to add the certificate to the trusted root for you.

    • Make sure that the PVWA/Privilege Cloud portal is accessible from the machine where you are running the script.

    • Recommended: Gather the information required by the GenerateLOBs script

  2. The GenerateLOBs script and accompanying files are located in the Vault Synchronizer installation package, provided by CyberArk Customer Support. From the unzipped package ( <Sync-package directory>), copy the following files to the Windows machine where you are going to run the script:

    • The Modules folder

    • GenerateLOBs.ps1

  3. Open a Windows PowerShell window, navigate to where you copied the GenerateLOBs script, and run the following command to start the script:

     
    .\GenerateLOBs.ps1
  4. The script opens. Follow all the prompts using the information you gathered above.

    The LOBs are added. For each LOB, a user and an account are created.

  5. For each LOB, add the LOB user to the list of members of each Safe that needs to sync with Conjur as described in Sync a Safe to Conjur - Add LOB user as member of target Safe.

  1. Create an LOB Vault user using one of the following methods:

    1. In PrivateArk Client, go to Tools > Administrative Tools > Users and Groups > New > User and create an LOB user in the Vault, provide a password for this LOB user, and update the following values:

      Tab

      Column

      Value

      General

       

      User name

      <LOB user name>

       

      LOB user name cannot begin with a special character or a number, and cannot contain spaces.

      User type

      APPProvider

      Authentication

       

      Password

      Enter a password for the LOB user, and enter it a second time for confirmation.

      User Must Change Password at Next Logon

      Uncheck

      Password never expires

      Check

    2. Log off from PrivateArk Client.

    Create the LOB user in the Vault/Privilege Cloud using the following template:

     

    The LOB user name cannot begin with a special character or a number, and cannot contain spaces.

     
    POST https://<PVWA_IP>/PasswordVault/api/Users
    
    {
        "username":"<LOB user name>",
        "userType": "AppProvider",
        "initialPassword": "<password>",
        "authenticationMethod": ["AuthTypePass"],
        "location": "\\",
        "expiryDate": "",
        "vaultAuthorization":"",
        "enableUser": true,
        "changePassOnNextLogon": false,
        "passwordNeverExpires": true,
        "description": "<description>"
    }
    

    For more details, see:

  2. Create an account in the PVWA/Privilege Cloud

    1. In PVWA/Privilege Cloud, create an account for the LOB user using all of the following values:

      Parameter Value

      System Type

      Application

      Platform Name

      CyberArk Vault

       
      • This value can be CyberArk Vault or any duplicate of the CyberArk Vault platform. Otherwise, the Vault Synchronizer will not be able to sync the LOB.
      • Ensure that the platform is activated.

      Store in Safe

      The name given to the Synchronizer Safe when the Vault Synchronizer was installed.

      User Name

      The LOB user name as created in the previous step.

      Address

      The IP address of the Vault

      For Privilege Cloud, contact CyberArk support.

      Password

      The password for the LOB user

      Customize Account Name

      The name of the account.

      The account name must have a prefix of LOBUser_.

      Allow automatic password management

      Disabled

      For example:

    2. Add the LOB user to the list of members of each Safe that needs to sync with Conjur as described in Sync a Safe to Conjur - Add LOB user as member of target Safe.

    3. Log off from PVWA.

Sync a Safe to Conjur - Add LOB user as member of target Safe

After you create an LOB user, you must add it to the list of members of each Safe that need to sync with Conjur by granting the user the following permissions:

Role

Permissions

Access

  • Use accounts
  • Retrieve accounts
  • List accounts

Workflow

Access Safe without confirmation

To add the user as a member of the Safe, see:

Delete an LOB

This section describes how to stop syncing an LOB.

 

After deleting an LOB, other hosts or users can no longer access the LOB variables.

Step 1: Delete the LOB account in PVWA/Privilege Cloud

When you delete the LOB account in PVWA/Privilege Cloud, the Vault Synchronizer no longer syncs the LOB.

  1. Log in to the PVWA/Privilege Cloud as a Vault/Privilege Cloud administrator.

  2. Delete the LOBUser_<LOB name> user account from the Synchronizer Safe, created when installing the Vault Synchronizer.

Step 2: Delete the LOB user

When you delete the LOB user, it is no longer counted for license purposes.

Delete the LOB user in the Vault/Privilege Cloud using one of the following methods:

Tool

Description

PrivateArk Client (PAM - Self-Hosted users only)

Delete the <LOB user name> user.

PVWA REST API

  1. Get the LOB user ID that needs to be deleted.

  2. Delete the LOB user.

For details see:

Step 3: Delete the LOB from Conjur

This step deletes the LOB from Conjur.

  1. Create a policy file named deleteLob_<lobName>.yml with the name of the LOB you intend to delete.

  2. In the policy file, input the below text, where <lobName> is the LOB you are deleting.

     
    - !delete
      record: !group <lobName>-admins
  3. Log in to Conjur as admin and load the policy using the Conjur CLI:

     
    conjur policy load delete -b <VaultName> -f <path to your policy>

    This can also be done using the Conjur v5 update policy REST API.

Supported LOBs

You can sync accounts from up to 10 LOBs to each Conjur cluster.