There's no automatic rollback for security imports in D365 F&O. Data Management only adds or updates roles/duties/privileges — it does not delete anything.
Options you can try:
Always test imports in a sandbox and keep backups of your security exports.
Hope this helps,
Zain