At my company we use a central single authentication source which is backed by ldap. The usernames are the same across all our systems. This is important because it allows for automation of certain tasks/jobs/etc based on the users role which is mapped by these unique usernames. I am unable to implement some automation against phabricator because some users decided to use a different username on phabricator (theres may be too long or cumbersome to type) from what their "external account" username is.
Description
Related Objects
Event Timeline
This doesn't really describe a root problem, see Describing Root Problems. This information is required, so that we may group multiple requests with similar or related problems.
some users decided to use a different username on phabricator
How did they change their username?
They didn't change it but when they first logged in with their LDAP, phabricator shows the new account form repopulated with attributes from ldap but you are free to chang those. The underlying external account still remains connected fine but now the username is not the same.
This wouldnt fix the issue though right? Does the Auth provider own the flow and UI views shown during registration?
PhabricatorRegistrationProfile is what you want, you can lock email, username, and real name.