MSAD User Federation sAMAccountName not matching username

Hi there!

I’m new to keycloak, I’m using the user federation service to automatically populate new users on my MS AD over SSL and so far so good. While doing some testing, I found out the sAMAccountName for the newly created users shows a random string and not the username I typed during the registration.

See screenshot below, username is “testuser” while the sAMAccountName shows “$E31000-…”

Are they any settings or changes I can make to the configuration to make the sAMAccountName attribute match the username typed?

TIA!

disregard. Fixed this issue with a custom mapping :slight_smile:

Cheers!