I'm using teamcity to build a .net project. We have seperate servers we deploy to for each team which we currently have to select as a build parameter to deploy to. I'd like to automate this.
My current idea is assigning users to a team specific group and grabbing that groups name and passing it to the deployment app. However all I can assess via the environment variables is the user name.
How can I access more user details from the environment variables? Or if it comes to it, could I write something to query teamcity during the build?