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

Description

Returns company users with nested project assignments for comprehensive access overview. Useful for auditing user permissions and displaying complete access profiles in admin dashboards.

Input

  • Query Parameters: model (CompanyUsersWithProjectsQueryRequest) — Filtering options including:
    • companyId (guid, optional) — Filter by parent company identifier.
    • limit (int, optional) — Maximum number of records to return.
    • offset (int, optional) — Number of records to skip for pagination.

Output

Returns a CompanyUsersWithProjectsQueryResponse containing users with their project associations.

Example Request

GET /api/admin/company-users/entries-with-projects?companyId=3fa85f64-5717-4562-b3fc-2c963f66afa6
Authorization: Bearer {token}

Example Response

{
  "success": true,
  "code": 200,
  "errorMessage": null,
  "entries": [
    {
      "userId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "email": "[email protected]",
      "firstName": "John",
      "lastName": "Doe",
      "role": "Member",
      "projects": [
        {
          "projectId": "7bc94a21-8833-4d2f-a5e1-9f4b2d8c1e7a",
          "projectName": "E-Commerce Application",
          "role": "Member"
        }
      ]
    }
  ]
}

Errors

  • 400 Bad Request — Invalid query parameters or filter values.
  • 401 Unauthorized — Missing or invalid authentication token.

Notes

  • Response includes nested project arrays for each user.
  • Users without project assignments return empty project arrays.
  • Use this endpoint for comprehensive user access auditing.

Authorizations

Authorization
string
header
required

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

Query Parameters

CompanyId
string<guid>

The identifier of the company whose users should be returned.

Id
string<guid> | null

Optional identifier to filter results by a specific entity.

Example:

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

Response

Always returned. Check the success property in the response body to determine if the operation succeeded.

Standard response structure containing operation status and error information. Standard query response containing a collection of matching entities. Represents the response returned when querying users with their project memberships.

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:
[]