Add or Update User in Project

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Adds or updates a user in a project.

Since : 7.17.4

Security: Requires a user assigned with the 'Administer the Platform' role or Project Admin permissions if admin_privileges.manage_resoures is enabled.

Usage: PUT ${baseUrl}/access/api/v1/projects/{project_key}/users/{user}

Produces: application/json

Parameters:

Name

Datatype

Description

project_key

string

The project key

user

string

The user's name

body

JSON

User object that needs to be added

Header parameter: Authorization: Bearer

Sample Request:

{
  "name": "memberName",
  "roles": [
    "developer"
  ]
}

Sample Response:

{
  "name": "memberName",
  "roles": [
    "developer"
  ]
}