Enterprise 11: Use Credential Vault to store user IDs, passwords, and other sensitive data
Store all user IDs and passwords in the Credential Vault in the Control Room, which is then referenced in the bot code.
Important: Never hardwire user IDs and passwords ed as variables in tasks because this introduces a security risk.
- Log in to the Control Room as a Bot Creator.
- From the left menu, go to .
- In the top right corner, click Create role.
Enter text in the following fields:
- Role name
- Role description (optional)
- Scroll down to Manage my credentials and lockers and select View and edit ALL credentials attributes value.
- Click Create role.
- In the left menu, go to Credentials. , and select
Click Create credential.
Give the credential a name and add attributes for example, username, password, or others, to make it available for use in other TaskBots and MetaBots.
- Click Create credential.
Go to Create locker.
, and click All available credentials appear under Available Credentials.
- In the Locker name field, type a name for the locker.
- Select the credentials that were just created, and add them to the Selected column.
- Click the CONSUMERS tab.
- Select roles from the Available roles column and add them to the Selected column.
- Click Create locker.
Now the Credential is available to use as an input for values in TaskBots and MetaBots.
Following are some important facts about using variables:
- Developer-created variables can be used with most Automation Anywhere commands.
- All command fields with the light bulb icon support variables.
- Press the F2 function key to list all user and system variables that are available for a selection.
- When a TaskBot runs, Automation Anywhere replaces the variable name with the actual value of the variable.
Important: Credential variables are not visible until a Control Room user with Locker Admin privileges enables the setting in the Control Room. When the setting is enabled, credential variables are available for passing as parameters from one TaskBot/MetaBot Logic to another TaskBot/MetaBot Logic. Read Passing parameters from and to MetaBot Logic for details.
For more information on how to use the Credential Vault, see Credentials- Overview and Credential variables.
Note: If a TaskBot or MetaBot is run directly from the Control Room, the credentials used from the Credential Vault might need to be manually reassigned. For example, if a MetaBot is run from the Control Room, open the MetaBot and reassign any input parameters that are stored in the Credential Vault.