How To
ForgeRock Identity Platform
Does not apply to Identity Cloud

How do I export and import policies in AM (All versions)?

Last updated Jan 16, 2023

The purpose of this article is to provide information about exporting and importing your policies in AM. This can provide a quick way to update or add new policies as you can edit the exported policies before importing them. It also provides an easy way of copying policies to different realms or backing up policies.

1 reader recommends this article

Exporting and importing policies

You can export and import policies in JSON format or in XACML (eXtensible Access Control Markup Language) format. Using JSON creates an exact copy of the original policy sets, resource types and policies upon import. See Import and exporting policies for further information on using ssoadm, the AM admin UI or REST to export and import policies.

Refer to the Using Amster (JSON) section for details on using Amster instead.

Using Amster

You can export and import policies using Amster as follows.


Use the following command to export:

am> export-config --path /path/to/export --realm / --realmEntities 'Policies'

Details for each policy will be written to a separate JSON file in the Policies directory within /path/to/export/realms/[realmName].


Use the following command to import:

am> import-config --path /path/to/export

See Also

Amster User guide


Related Training


Related Issue Tracker IDs


Copyright and Trademarks Copyright © 2023 ForgeRock, all rights reserved.