You are viewing the documentation of TeamCity 10.x and 2017.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.


Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Extracted authentication from URL encoded to -u parameter, as some clients can't handle that properly (in particular some curl clients can't)


3. Issue the request
Get curl command line tool and use a command line:

curl -v -u :SUPERUSER_TOKEN--request PUT http://teamcity:SUPERUSER_TOKEN@teamcity:8111/app/rest/users/username:USERNAME/roles/SYSTEM_ADMIN/g/