SIA error when adding target set to strong account
Symptom
When trying to add a target set to a strong account in SIA, you get either a generic error or an error that you cannot add this target set as it's already associated.
You may have already added this target set to another strong account and/or deleted that strong account without removing the target set first.
Environment
14.4 Secure Infrastructure Access (formerly DPA) Cyber-Ark API/SDK
Secure Infrastructure access
Cause
Target sets not getting removed when the associated strong account is removed is a known issue.
Resolution
Make sure no strong accounts have the target set assigned to them. Once confident, proceed.
Workaround is to use the API to remove the target set.
Here is the documentation to delete via API, we suggest to first list the target sets via the "GET" method and then delete.
https://docs.cyberark.com/ispss-access/latest/en/content/apis/dpa-target-sets.htm
After this is done try adding the target set to your strong account again.
This page on the docs describes the REST APIs used to authenticate to Idira Identity Security Platform Shared Services and how to use them in Dynamic Privileged Access's REST APIs for automating tasks:
https://docs.cyberark.com/ispss-access/latest/en/content/ispss/ispss-api-authentication.htm
You may also prefer to use our module from github to make this easier:
https://github.com/pspete/IdentityCommand.DPA
Get-DPATargetSet
Remove-DPATargetSet