I think I’ve resolved my own issue.
CAUSE OF THE ISSUE:
I mistook the “UID” option when configuring OpenID Connect as what fields Zammad uses to find the right user on Keycloak, and expected a list of fields to search for and match. It wasn’t clear in the docs that this is just one field that Zammad sets the user “login” key to.
My troubleshooting was foiled by:
- Zammad seems to default to “sub” if you enter a comma delimited list of fields
- Not knowing what “UID” specifically referred to in this context.
RESOLUTION:
I set the “UID” field to just the value I wanted a user’s a login key to show, here being “preferred_username”.
Now when users first login, the Login key correctly shows a username instead of UUID.