Importing and Exporting Resource-Based Policies
You can export and import policies from the Ranger Admin UI for cluster resiliency (backups), during recovery operations, or when moving policies from test clusters to production clusters. You can export/import a specific subset of policies (such as those that pertain to specific resources or user/groups) or clone the entire repository (or multiple repositories) via Ranger Admin UI.
You can also export policies from the Reports page:
|Access Manager Page||Reports Page|
|Specific Service Export||Yes||Via filtering|
When exporting from the Reports page, you can apply filters before saving the file.
Note: CSV format is not supported for importing policies.
Required User Roles
The Ranger admin user can import and export only Resource & Tag based policies. The credentials for this user are set in Ranger Configs > Advanced ranger-env in the fields labeled admin_username (default: admin/admin).
The Ranger KMS keyadmin user can import and export only KMS policies. The default credentials for this user are keyadmin/keyadmin.
MS SQL: 2008 R2+
Partial import is not supported.