Error when import LDAP Federation with Hardcoded Group Mapper

Hi the community,

I have a problem when I try to import a realm (from import or migration method) whith a LDAP federation with “Hardcoded Default Group” mapper (I have this problem since Keycloak v9 and later, not tested before)
The problem is the group doesn’t exists yet.
I think there is a problem in the realm order import method and perhaps federation entries are imported before realm groups. I assure I have no problem when I try to make Hardcoded default group on the same group after the import.

Do you have a other method to do thoses imports ?
If there is a import order problem, do you think it can be corrected in a future Keycloak version pls ?
Thank you very much for your answer.

Best regards,