Skip to main content
GET
/
api
/
adm
/
companyProjectUsers
Get Project User Associations
curl --request GET \
  --url https://localhost:44371/api/adm/companyProjectUsers \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "entries": []
}

Description

Queries user-project associations to determine project access. Common use cases include listing all users assigned to a project or finding all projects a user can access.

Input

  • Query Parameters: model (CompanyProjectUserQueryRequest) — Filters including:
    • companyProjectId (guid, optional) — Filter by project.
    • companyUserId (guid, optional) — Filter by user.
    • companyId (guid, optional) — Filter by company.
    • id (guid, optional) — Filter by association ID.

Output

Returns a CompanyProjectUserQueryResponse containing matching associations or an empty list.

Example Request

GET /api/admin/companyProjectUsers?companyProjectId=7bc94a21-8833-4d2f-a5e1-9f4b2d8c1e7a
Authorization: Bearer {token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "entries": [
    {
      "id": "9d3e5f12-4a6b-4c8d-9e2f-1a3b5c7d9e0f",
      "companyUserId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "companyProjectId": "7bc94a21-8833-4d2f-a5e1-9f4b2d8c1e7a",
      "userName": "[email protected]",
      "role": "Member",
      "isActive": true
    }
  ]
}

Errors

  • 400 Bad Request — Invalid query parameters.
  • 404 Not Found — No associations match the specified criteria.

Notes

  • Filter by companyProjectId to see all users assigned to a project.
  • Filter by companyUserId to see all projects a user can access.
  • Empty results return success with empty entries array.

Authorizations

Authorization
string
header
required

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

Query Parameters

CompanyProjectId
string<guid> | null

The optional identifier of the project used to filter results.

IsActive
boolean | null

Indicates whether to filter results by active status.

Id
string<guid> | null

Optional identifier to filter results by a specific entity.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Response

Returns the matching project user associations (may be an empty list if no matches found).

Represents the response returned when querying company project users.

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

entries
object[] | null

Collection of entities matching the query criteria.

Example:
[]