How to get user's email address from TeamCity

We have email notification setup with LDAP.  The users email address is automatically populated and they can elect to receive notfiications, however we need to be able to adorn some external processes with the user who triggered the builds email address.  We are using the groovy plugin to get the user name of the person triggering the build but now we need their email address.  Since teamcity already has that information, we are hoping it's easy to get it.  Anyone know?

Is there a way to get it via REST or any other method?  The environment/system variable route appears to be a bust...

1 comment
Comment actions Permalink

Hi Robert.

You can use http://<teamcity>/app/rest/users/<username> call for that. user/@email attribute provides the value.

0

Please sign in to leave a comment.