Import users while keeping GUID

I am trying to do an update on a severely outdated keycloak server. The approach I would like to take is to just deploy a brand new server and load in the data from my old server. This seems to work fine with the exception of the UUIDs associated with my users.

This UUID is used to link the users into some outside systems so keeping them the same is a requirement. Is there any way I can do this?

You can upgrade your existing system to the most recent version. Then, shut it down, but keep your database of course, and connect your new server to the existing database. Other way round would also be possible: connect your new server against your database and then do the upgrade.