Concatenate active directory attributes


When using Active Directory authentication, I want to concatenate “First name” and “Last name” attributes to create the Username Attribute.

Steps to reproduce

In your AD, you have a user with attributes givenName = “John” and sn = “Doe”.
You want the username to be “John Doe”.
Using version 5.13.3, I tried “{givenName} {sn}” but it doesn’t work.

Expected behavior

Username should be “John Doe”.

Observed behavior

A random username is given to the user.

Hello, @nodefourtytwo

While the concatenate feature is not available on AD / LDAP for Mattermost, may I know if you would consider using Okta as you would be able to map the custom configuration to the username field in the Attribute Statements section? Thanks.