In the Management Console you can export the roles.xml.
Go to your IM Management Console,
Login if required.
Click on Environments.
Click on the environment name, i.e. identityEnv.
Click "Role and Task Settings"
The XML file will be downloaded to your local machine.