Add or Remove User from Groups

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Add or remove groups from a user.

Since: 7.49.3

Authorization: Requires admin authentication using Access Tokens

Usage: PATCH /access/api/v2/users/{username}/groups

Content-Type: application/json

Produces: application/json

Request:

{
  "add": [
    "string"
  ],
  "remove": [
    "string"
  ]
}

Response:

{
  "groups": [
    "string"
  ]
}

Response Codes:

Returns a 400 code in the following cases:

  • If both add and remove are not provided

  • If the same value appears in both add and remove lists

  • If one of the lists contains a non-existent group