Unassign user from projects

Available in versions: 2023 R1 and later

Description

Unassigns a user (specified by ID) from a specific project.

URL

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

Remarks

None

HTTP Method

POST: Unassigns a user (specified by ID) from a specific project.

Request

Headers:

Content-Type: application/xml

Accept: application/json, application/xml

Cookies:

ADM_LWSSO={AdmLwssoCookie};

Request Body:

An XML listing the project from which the user will be unassigned.

The fields in the request are:

ElementDescription
ProjectIdThe ID of the project from which the user should be unassigned

Response

Headers:

None

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes.

Upon successful unassignment, returns HTTP status 204 (No content).

See Also

Assign project and role to user
Update a user
Delete a user
Get user by ID
Get all users
Get list of users by query