Keycloak Attribute-Mapper

Hello everyone,

I have a requirement for Keycloak 19 that I haven’t been able to implement for days. I think all the time, it can’t be that difficult :slight_smile:

I connected the AD in Keycloak using “User Federation”. That works fine. Now I not only have to pass the sAMAccountName to the Tomcat, but first the domain: domain${sAMAccountName}.
I have already tested everything under “User Federation\Mappers” and was able to generate a new attribute, but the variable will not be resolved.

I am the closest to the solution when I do it with a “hardcoded-attribute-mapper”. But as I said, the variable remains written out.

Can somebody help me with it? I’m close to despair :slight_smile:

Thank you very much and greetings
Andre