Unassign user from projects
Available in versions: 2023 R1 and later
Description
Unassigns a user (specified by ID) from a specific project.
URL
/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:
Element | Description |
---|---|
ProjectId | The ID of the project from which the user should be unassigned |

<LRE_Server>/Admin/rest/v1/users/unassignUser/1003
Content-Type: application/xml
Accept: application/xml
Cookie: ADM_LWSSO={AdmLwssoCookie};
<UserProjectUnassignment>
<ProjectId>1011</ProjectId>
</UserProjectUnassignment>
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