keycloak add custom map

Hello all
I have openldap and keycloak
And there are several entities in it:

  • Users
    • admin@gm.loc
  • Groups
    • designers
    • architector
  • sudo-roles
    • developers
    • testers
    • admins
  • hosts
    • *.corp.local
    • *.corp.infra

I have successfully linked users and their groups via ldap and it works.
However, I would also like to link sudo roles and hosts and use them when creating a user in keycloak.
How can this be done in keycloak?