How to convert local gitlab user (email) to LDAP user?

See this discussion for some relevant info.

Basically use the console to inspect an ldap user and a local user to see the different propeties & values. Then you can write a script to modify the users you want.