Share this page

# 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:

Element | Description
--- | ---
ProjectId | The ID of the project from which the user should be unassigned

Request Example
Copy code

    <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

Tips to improve your search results... LoadRunner Enterprise Administration REST API Reference LRE Admin REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)