【问题标题】:How to remove all roles from nexus user through swagger UI如何通过 swagger UI 从 nexus 用户中删除所有角色
【发布时间】:2020-08-14 11:59:25
【问题描述】:

我正在尝试通过 /beta/security/users/{userId} 更新 nexus 中的用户

Update an existing user.
{
  "userId": "dummy",
  "firstName": "dummy",
  "lastName": "dummy",
  "emailAddress": "dummy1@dummy.net",
  "source": "default",
  "status": "active",
  "readOnly": true,
  "roles": [
    "CC_ssc"
  ],
  "externalRoles": [
    "string"
  ]

我试图通过上面删除角色CC_ssc,但它显示:

[
  {
    "id": "PARAMETER roles",
    "message": "may not be empty"
  }
]

【问题讨论】:

    标签: swagger-ui nexus nexus3


    【解决方案1】:

    你不能。这是正确的验证,与 UI 相同。 如果您的用例是让用户存在但没有权限,那么在 NXRM 中这相当于禁用它们。

    【讨论】:

      猜你喜欢
      • 2020-09-24
      • 2020-12-27
      • 2019-04-07
      • 2017-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-29
      • 1970-01-01
      相关资源
      最近更新 更多