How To
ForgeRock Identity Platform
Does not apply to Identity Cloud

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

Last updated Jul 6, 2022

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 Importing 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.

Export

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].

Import

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

Amster User guide

Policies

Related Training

N/A

Related Issue Tracker IDs

N/A


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