Assign user to project and role

Available in versions: 2020 SP3 and later

Description

Assigns a user to a specific project and a specific role.

URL

Copy code
/Admin/rest/v1/users/assignUser/{userID}

Remarks

None

HTTP Method

POST: Assigns a user (specified by ID) to a project and a role.

Request

Headers:

Content-Type: application/xml

Accept: application/json, application/xml

Cookies:

LWSSO_COOKIE_KEY={LwssoCookie};

Request Body:

An XML describing details of the user to be assigned.

The fields in the request are:

ElementDescription
UserIDThe ID of the user assigned to the project and role.
ProjectIdThe project ID assigned to the user.
RoleThe name of the role assigned to the user

Response

Headers:

None

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes.

Upon successful assignment, returns HTTP status 200 (OK).

See Also

Update a user
Delete a user
Get user by ID
Get all users
Get list of users by query