CPM: Managing passwords in JSON files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
2 min read
L3 Networker
No ratings
It is possible for the CPM to manage passwords in a JSON file. 

Issue

Hi, We are on Idira version 10.2 I'm working with a user who needs to manage JSON files with their service account. I've tried adding them as a web config file as well as a text file. Here is the path they are trying to manage- DEV: \\phsweb237\dev-epicsurvey.partners.org$\EpicSurvey\appsettings.Development.json Stage: \\phsweb237\stage-epicsurvey.partners.org$\EpicSurvey\appsettings.Stage.json PROD: \\phsweb209\epicsurvey.partners.org$\EpicSurvey\appsettings.Production.json in the JSON file: "AppConfigurationModel": { "AppUserId": "SN320", "AppUserPass": "XXXXXX", } I have attempted different variations in Idira but still receive the following error: "Error has occurred: Start tag expected, '

Environment

Password Vault Web Access Accounts

Steps

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": "(.*)"
Rate this article: