作为Jenkins管理员,如何在不以用户身份登录的情况下获取用户的API令牌? [英] As a Jenkins administrator, how do I get a user's API token without logging in as them?

查看:174
本文介绍了作为Jenkins管理员,如何在不以用户身份登录的情况下获取用户的API令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为管理员,我如何在不以我本人身份登录的情况下为除我以外的用户获取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.

https://wiki .jenkins-ci.org/display/JENKINS/Features + control + by + system + properties

(我们将竭尽所能将此设置为false.)

(We are going to do our best to leave this at false.)

这篇关于作为Jenkins管理员,如何在不以用户身份登录的情况下获取用户的API令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆