Skip to main content

Add user to project

POST <your-unleash-url>/api/admin/projects/:projectId/users/:userId/roles/:roleId

Authorization

name: Authorizationtype: apiKeyin: header
deprecated

This endpoint has been deprecated and may be removed in future versions of the API.

Adds the specified user to a project with the provided role. This endpoint is deprecated. Use /:projectId/access instead.

Request

Path Parameters

  • projectId string required
  • userId string required
  • roleId string required
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
projectId — path required
userId — path required
roleId — path required
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/users/:userId/roles/:roleId' \
-H 'Authorization: <API_KEY_VALUE>'