I have manually created a role for Enterprise Manager by exporting the ac-env-RoleDefinitions.xml and making rules via copy and paste full roles. However, when I import this into idmmanage it times out and doesn't import fully.
Enterprise Manager 12.8+
This is caused by timeouts in the Web Interface as the import is taking longer than these timeouts.
The best option here is to break the imports up into smaller (complete) chunks and then do them one by one to avoid java memory and timeout issues.
The first two lines are the header in the file and are mandatory. The ending tag too so that the file is properly closed.
<?xml version="1.0" encoding="UTF-8"?>
<ims:ImsTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://imsenvironmentobjects/xsd imsconfig://schema/ImsEnvironmentObjects.xsd" xmlns:ims="http://imsenvironmentobjects/xsd" xmlns:imsrule="http://imsmemberrule/xsd" xmlns:imsscope="http://imsscoperule/xsd" xmlns:imschange="http://imschangeaction/xsd">