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

Description

Returns projects accessible to a specific user with role information. Used for user dashboards, project selectors, permission validation, and auditing.

Input

  • Query Parameters: model (CompanyProjectUserByCompanyUserQueryRequest) — Parameters including:
    • companyUserId (guid, required) — Company user identifier.

Output

Returns a CompanyProjectUserByCompanyUserQueryResponse containing the user’s project assignments or empty list.

Example Request

GET /api/admin/companyProjectUserEntries?companyUserId=3fa85f64-5717-4562-b3fc-2c963f66afa6
Authorization: Bearer {token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "projects": [
    {
      "projectId": "7bc94a21-8833-4d2f-a5e1-9f4b2d8c1e7a",
      "projectName": "Payment Gateway Project",
      "role": "Admin",
      "assignedDate": "2024-01-15T10:30:00Z"
    }
  ]
}

Errors

  • 400 Bad Request — Invalid query parameters.
  • 404 Not Found — Company user not found.

Notes

  • Use for building user dashboards and project selector dropdowns.
  • Empty list means user has no project assignments.
  • Results include role information for permission checks.

Authorizations

Authorization
string
header
required

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

Query Parameters

CompanyUserId
string<guid>

The identifier of the company user whose memberships are being requested.

Id
string<guid> | null

Optional identifier to filter results by a specific entity.

Example:

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

Response

Returns the list of projects the user has access to (may be empty if user has no project assignments).

Standard response structure containing operation status and error information. Standard query response containing a collection of matching entities. Represents the response returned when querying project memberships for a specific 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

entries
object[] | null

Collection of entities matching the query criteria.

Example:
[]
companyUserShortInfo
object

The short user information included with the response.