'Unrecognized field "userName" (class org.keycloak.representations.idm.UserRepresentation), not marked as ignorable'

I suddenly started to get this error when i try to create users, i cant seem to figure out where it is coming from, tried debugging and nothing makes sense so far.

1 Like

I get the same, any resolution?

Found the issue, at least for me.

If you have any custom attributes you must modify the JSON payload to include them in a map of “attributes”

For your issue @TemoSulava I would assume the userName just needs to be username in the payload.