CPM: Managing passwords in JSON files
95
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:52 PM
Objective
It is possible for the CPM to manage passwords in a JSON file.
Environment
10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Procedure
Overview
--------
The platform uses Microsoft .NET as opposed to older CPM plugins which used PMTerminal.exe
Pre-Implementation
------------------
1. You will need to download the following from Idira Marketplace:
* Text Configuration File platform (https://community.cyberark.com/marketplace/s/#a352J000000WU6tQAG-a392J0000013abZQAQ)
-- Use the standard method for importing this platform.
* Credentials Management .NET SDK (https://community.cyberark.com/marketplace/s/#a3550000000EkA0AAK-a3950000000jjoOAAQ)
-- The DLL files in the ZIP package and the CANetPluginInvoker.exe need to be copied to the %INSTALLDIR%\CyberArk\PasswordManager\bin folder (where %INSTALLDIR% is the base location where the CPM is installed. By default this is C:\Program Files (x86)\CyberArk\PasswordManager).
-- The CyberArk.Extensions.Plugin.Template.zip should go into the ExtensionsInstallationPlatforms folder (if the folder does not exist, it needs to be created).
2. Duplicate the platform you just imported (IMPORTANT: note the Platform ID) - this will be needed as it will be added as a usage to the parent account platform
3. In the parent account platform, add the duplicated platform ID to Usages (UI & Workflows -> Usages). Note that a CPM restart is recommended but not required.
Implementation
--------------
Follow these guidelines for configuring the file: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/AccountsStoredInConfigurationFiles.htm
Additional Notes:
-----------------
This is an example regex. Note that the password field name could be different
The password is contained in a field called AppUserPass. The JSON field will look something like:
AppUserPass: "xxxxxxxx",
The regex would be "AppUserPass": "(.*)",
Note if the field is at the end of a section in the JSON, it would look like
AppUserPass: "xxxxxxxx" --> Note the field does not contain a comma
The regex would be "AppUserPass": "(.*)"