Add or Remove a Group Member

JFrog REST APIs

ft:sourceType
Paligo

Description: Manage group members by adding and removing group members.

Since: 7.49.3

Authorization: Requires admin permissions

Usage: PATCH /access/api/v2/groups/{name}/members

Content-Type: application/json

Produces: application/json

Request:

{
  "add": "[\"user1\", \"user2\"]",
  "remove": "[\"user1\", \"user2\"]"
}

Response:

{
  "members": ["user1", "user2"]
}

Response Codes:

Returns a 400 code in the following cases:

  • If both add list and remove list are not provided

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

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