Reply To: Use Ignio platform Cyberark vault in custom Studio function

bana.sunit
Participant
2 years, 3 months ago #3351
Up
2
Down
::

Step 1. Your Groovy Code should be run on proxy
Step 2. In the preblock fetch the credential from policy like
com.digitate.ignio.data.graph.model.NodeModel credentialNodeModel=apiHelper.getCredential(subject);
// subject is node where you have attached the credential policy

// Set credential Model in inputMap
inputMap << [“credentialNodeModel”:credentialNodeModel];

Step 3. In main code get it from input parameter like this
inputMap.credentialNodeModel.properties.username
inputMap.credentialNodeModel.properties.password