Skip to main content
DELETE
/
api
/
adm
/
companyProjectUsers
/
{id}
Remove User from Project
curl --request DELETE \
  --url https://localhost:44371/api/adm/companyProjectUsers/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Description

Soft-deletes a user-project association, revoking project access while preserving audit trail. User remains a company user and retains access to other assigned projects.

Input

  • Path Parameter: id (guid, required) — Project user association identifier.

Output

Returns a CompanyProjectUserDeleteCommandResponse indicating deletion success.

Example Request

DELETE /api/admin/companyProjectUsers/9d3e5f12-4a6b-4c8d-9e2f-1a3b5c7d9e0f
Authorization: Bearer {token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null
}

Errors

  • 400 Bad Request — Validation errors.
  • 404 Not Found — Association not found.

Notes

  • User loses project access immediately.
  • Historical activity remains visible for auditing.
  • Association soft-deleted, not permanently removed.
  • User can still access other assigned projects.
  • Remove project associations before deleting company user.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string<guid>
required

The unique identifier of the project user association to remove.

Response

Returns success when the project user association is removed successfully.

Represents the response returned after deleting a company project user.

success
boolean

True if the operation completed successfully; false if an error occurred.

Example:

true

code
enum<string>

Result code indicating the outcome of the operation.

Available options:
Unknown,
Success,
BadRequest,
Unauthorized,
NotFound,
Error
Example:

200

errorMessage
string | null

Human-readable error message when an error occurs.

Example:

null