# Storing Robot Credentials in CyberArk

> Before beginning the procedures below, make sure you have configured your [CyberArk® integration](https://docs.uipath.com/orchestrator/standalone/2024.10/user-guide/integrating-credential-stores#cyberark%C2%AE-integration).

Before beginning the procedures below, make sure you have configured your [CyberArk® integration](https://docs.uipath.com/orchestrator/standalone/2024.10/user-guide/integrating-credential-stores#cyberark%C2%AE-integration).

## Adding Accounts for Your Robots

You must add the login credentials under which your Robot runs. If you have multiple Robots, perform this procedure for all of them. This procedure applies to both local and domain users. From the CyberArk® PVWA interface, follow these steps:

1. On the **Accounts** tab, click **Add Account**. The **Add Account** page is displayed.
2. Select **Windows** in the **System Type** list.

   Figure 1. Selecting Windows in the system type list

   ![Screenshot of the Select system type interface in CyberArk](https://dev-assets.cms.uipath.com/assets/images/orchestrator/orchestrator-screenshot-of-the-select-system-type-interface-in-cyberark-232137-075cc6e9.webp)

3. On the **Assign to Platform** tab:
   * select **Windows Desktop Local Accounts** if the Robot user is local.
   * select **Windows Domain Account** if the Robot user is part of an Active Directory.

     Figure 2. Selecting the platform

     ![Screenshot of the Select platform interface in CyberArk](https://dev-assets.cms.uipath.com/assets/images/orchestrator/orchestrator-screenshot-of-the-select-platform-interface-in-cyberark-229376-51d7b56c.webp)

4. On the **Store in Safe** tab, select the safe you previously created.

   Figure 3. Selecting the safe

   ![Screenshot of the Select Safe interface in CyberArk](https://dev-assets.cms.uipath.com/assets/images/orchestrator/orchestrator-screenshot-of-the-select-safe-interface-in-cyberark-227011-a7da85a1.webp)

5. On the **Define Properties** tab, populate the following fields:

   Figure 4. Defining account properties

   ![Screenshot of the Define account properties interface in CyberArk](https://dev-assets.cms.uipath.com/assets/images/orchestrator/orchestrator-screenshot-of-the-define-account-properties-interface-in-cyberark-231597-a4950e2a.webp)

   
   <colgroup>
   <col/>
   <col/>
   </colgroup>
   
   
     Field  
     Value  
   
   
   
   
    Address 
   
      
          For Local Users - Type the name of the machine on which the Robot is installed  
          For Domain Users - Type the name of the domain in which the Robot machine is installed on.  
      
   
   
   
    Username 
     The name of the account under which the Robot runs.  
   
   
    Password and Confirm Password 
     Type the password that belongs to the account under which the Robot runs.  
   
   
    Customize Account Name Toggle  
     Enabled. Type the machine or domain name, and the Robot username. The same name needs to be used in Orchestrator when defining the credential for the robot.  
   
   
   

6. Click **Save**. The account is saved. Orchestrator uses this to retrieve the Robot credentials when it needs to, if you have the Robot provisioned in Orchestrator.

## Retrieving the Vault Credentials

After performing the steps above, you have to provision the Robot in Orchestrator. As you are now using CyberArk® to store your passwords, please note that in the **Provision Robot** window, you no longer have to add the password. However, the user is still mandatory.

When provisioning the Robot in Orchestrator, add the username as you normally would:

* for local users - the actual username, such as `Documentation`;
* for domain users - the username and domain it runs under, in the `DOMAIN\username` format, such as `uipath\administrator`.

Based on the account provided for the Robot, Orchestrator searches for a match in CyberArk. When a match is found, the corresponding password is retrieved.

:::note
* When making changes to the password in Cyberark Application Password Provider,
please keep in mind that it might take a few minutes for it to be propagated in Orchestrator due to AIM's cache system.
* When a robot or asset is created
in Orchestrator, it is linked to an existing secret using the Orchestrator asset's **External Name**. Make sure that the CyberArk account name is set in the **External Name** field, to be mapped with the CyberArk account details.
:::
