作为Jenkins管理员,如何在不以用户身份登录的情况下获取用户的API令牌? [英] As a Jenkins administrator, how do I get a user's API token without logging in as them?
问题描述
作为管理员,我如何在不以我本人身份登录的情况下为除我以外的用户获取API令牌?当我访问用户配置页面时,看到的只是令牌已隐藏",我也无法更改它.
As an administrator, how do I get an API token for a user other than myself, without logging in as them? When I visit the user configuration page, all I see is that "Token is hidden", and I cannot change it either.
推荐答案
有一个Jenkins系统属性jenkins.security.ApiTokenProperty.showTokenToAdmins.您需要访问主服务器/OC进程启动才能进行更改.
There is a Jenkins System Property, jenkins.security.ApiTokenProperty.showTokenToAdmins . You need access to the master/OC process startup to change it.
(我们将竭尽所能将此设置为false.)
(We are going to do our best to leave this at false.)
这篇关于作为Jenkins管理员,如何在不以用户身份登录的情况下获取用户的API令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!