Federated users Role

I have a user provider in Keycloak, and I am trying to import a basic configuration to run my server with a user and determinates roles in the users.

I have in the database the backup to restore in the table fed_user_role_mapping where are the relations between the users and the roles, and when keycloak begins, it deletes the content of the table, so can’t be loaded the roles to the users.

What can I do? I tried with 7.0.0, 8.0.0 and 9.0.0 versions …

I solve it! The table fed_user_role_mapping was deleted because I was using import the realm by a json, when all the data have just imported in the database.