Role+Strategy+Plugin Jenkins收回用户权限API

**API method to unassign groupuser with a roleExample: curl -X POST localhost:8080role-strategystrategyunassignRol

/**

  • API method to unassign group/user with a role
  • Example: curl -X POST localhost:8080/role-strategy/strategy/unassignRole --data “type=globalRoles&roleName=AMD&sid=USERSID”
  • @param type (globalRoles, projectRoles, slaveRoles)
  • @param roleName unassign role with sid
  • @param sid user ID to remove
  • @throws IOException in case saving changes fails
  • @since 2.6.0
    */
curl -X POST -u 'admin:110bd112d53af28761234567899999999' https://localhost/jenkins/role-strategy/strategy/unassignRole --data "type=globalRoles&roleName=ROLENAME&sid=SID"

curl -X POST -u 'admin:110bd112d53af28761234567899999999' https://localhost/jenkins/role-strategy/strategy/unassignRole --data "type=projectRoles&roleName=ROLENAME&sid=SID"

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754914663a5214884.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信