Modules

Calendar

Certificates

CollectiveAgreements

Company Forms

Company Forms Management

Contacts

Contracts

Customer Assets

Equipment

Expenses

Job Invoices

Jobs

Labour Actions

Library

Locates

Materials

Messages

Purchase Orders

Safety

Schedule

Service Quotes/Invoices

Service Requests

Services

Settings

TimeLogs

Users

Other

CompanyUser Resource


This is the same underlying db table as UserPermission, however it is readonly, and strips permission data from the result, so it can be used as a public user work history

Endpoints

Endpoints URI Access Control Description
offer-employment POST /api/CompanyUser/offer-employment Endpoint level permissions Send an employment offer to a user RequestType: POST
accept-employment GET /api/CompanyUser/accept-employment Authentication only User accepts an employment offer from a company
decline-employment POST /api/CompanyUser/decline-employment Authentication only User delines an employment offer from a company
find GET /api/CompanyUser/find Allowed with an active employment connection
get GET /api/CompanyUser/get Allowed with an active employment connection
compileCachedRelations GET /api/CompanyUser/compileCachedRelations Endpoint level permissions

Properties

Property Type Description
id number
slug string
user_id number
role_type_last_updated datetime
is_inactive boolean
invite_accepted datetime
invite_declined boolean
disconnect_date datetime
user_services_json string
created_at datetime

Settings

Setting
Pagination Limit (when page parameter is set) None
Default Sort Order created_at DESC

Relationships

Related Resource Key Relationship to CompanyUser Property
Company tenant_id Belongs To Company
User user_id Belongs To User