It’s really not possible (of course you can export/import Quality Profiles and reconfigure your Quality Gates), but there is no way to bring over project data except for restoring your database.
Instead of getting rid of all users, I’d encourage you to migrate them to your new identity provider.