In JetBrains TeamCity prior to 2020.2.1, permissions during token removal were checked improperly.
jetbrains teamcity