I'm trying to run an application during a build which uses the REST API. The REST calls are authenticated using %system.teamcity.auth.userId% and %system.teamcity.auth.password%. All of the REST commands work fine except for one that is used to get user details. This call fails with "server error 500", which apparently is because the %system.teamcity.auth.userId% user does not have sufficient permissions. If I manually choose a user that has admin priveleges, then the call works.
This is the call that is failing:
Is this by design? Is there another way to get user info? (I am trying to get the user's e-mail address.)