- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-28-2024 11:54 PM
Greetings EPM Community,
I would like to know if there is a way to export the all policies and application groups from the EPM API, the same way we can do it from the GUI, that give us an file like:
Export All Application Policies -> Policies.epmp
Export All Application Groups -> APP_Groups.epmp
Because on the documentation:
https://docs.cyberark.com/epm/latest/en/content/webservices/getpolicies.htm
https://docs.cyberark.com/epm/latest/en/content/webservices/getappgroups.htm
I don't see a request (If I am understanding correctly) that can return a single .epmp with all policies like we do on the GUI.
If someone could give a hint would be great.
Thank you!
Best regards,
Pais
12-01-2024 11:48 PM
Hi @Marcos Pais,
Currently, there are no APIs available for exporting or importing policies into EPMB files, as we have in the UI.
As @Malhar Vora mentioned, you can use the following APIs to retrieve all relevant information for policies:
Additionally, for application groups, you can use:
If you require APIs for policy import and export, please submit an ER (Enhancement Request).
Thanks,
Nir
11-30-2024 02:37 AM
Hi @Marcos Pais
As I understand, EPM REST API does not currently provide a direct method to export all application policies into .epmp files as the GUI does.
The API ‘Get Policy Details’’ fetches the details of policies but the response is in JSON format and not .epmp.
You can confirm above with the CyberArk and see if there is an existing ER or you might want to raise one for this feature.
Hope it helps !
12-01-2024 11:48 PM
Hi @Marcos Pais,
Currently, there are no APIs available for exporting or importing policies into EPMB files, as we have in the UI.
As @Malhar Vora mentioned, you can use the following APIs to retrieve all relevant information for policies:
Additionally, for application groups, you can use:
If you require APIs for policy import and export, please submit an ER (Enhancement Request).
Thanks,
Nir
12-02-2024 06:19 AM
Good afternoon,
Ok understood.
I can get the information from the api, but I cannot import a policy with the information retrieved from an API.
I will open a ER, because would be very helpful to have a routine making a backup of the polices periodically, that we could import (either by API or GUI), in case id needed to rollback a bad configuration.
Thanks!
Pais
12-02-2024 07:10 AM
In case someone is also interested in this feature, please vote: ER - Export and Import Polices has .epmp file trought API
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

