Automatically setting VCS Username for new LDAP user

Completed

Our teamcity instance has users ldap synced to our active directory, and new users created on first login.

With this setup, the VCS Username for the newly created user becomes the same as their AD username. Is it possible to configure this to be something else? The AD username unfortunately does not match any of the options for VCS Root username style.

To be clear: I know the user, or an admin, can go and manually change their vcs username. What I want is the created user to automatically have the VCS Username set to something better, like the email address.

 

1
1 comment
Avatar
Fedor Rumyantsev

You may set up specific VCS root to be bound to mail property of user entry (https://www.jetbrains.com/help/teamcity/ldap-integration.html#LDAPIntegration-UserProfileData). For example, my local setup for Git with mail property at userEntry LDAP context named "mail" looks like this:


teamcity.users.property.plugin\:vcs\:jetbrains.git\:anyVcsRoot=mail


Unfortunately, anyVcs ("default" VCS username) currently cannot be set up in this manner. I`m clarifying with the development team in scope of this issue:
https://youtrack.jetbrains.com/issue/TW-28137

0

Please sign in to leave a comment.