How To
ForgeRock Identity Platform
Does not apply to Identity Cloud

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

Last updated Apr 13, 2021

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 Authorization Guide › Importing and Exporting Policies for further information on using ssoadm, the console 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

Guice configuration errors when importing or exporting policies using ssoadm in AM 5, 5.1.x and OpenAM 13.5.1

User Guide

Entity Reference › Policies

Related Training


Related Issue Tracker IDs


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