Create Employee

Create, reactivate, or additively update an employee binding. The user must
already exist (either provisioned via SSO or as an existing Digits user). This
operation is synchronous. If the employee binding already exists and is active,
the supplied access is merged in: named bindings are added or their role updated,
and access omitted from the request is never removed; the required
organizationRole always overwrites the current organization role. Use Update
Employee to fully replace access, or Delete Employee to remove it.

Requires scope: organization:sync.

Body Params

Request to create, reactivate, or additively update an employee binding. The
referenced user must already exist. If the employee binding already exists and
is active, the supplied access is merged in: named bindings are added or their
role updated, and access omitted from the request is never removed (use
UpdateEmployeeRequest to fully replace access). organizationRole is required
and always overwrites the employee's current organization role. Optionally
provide entity access (entityRole, entities, or both), client access
(clientRole, clients, or both), or both. entityRole and clientRole are
employee-level defaults: they are stored on the employee row for future
entities or client entities, and applied to current access unless explicit
entities or clients entries override them.

string

User's Digits-assigned ID (provide userId or userExternalId).

string

User's caller-assigned ID (provide userId or userExternalId).

string
required

The employee's role within the organization.

entities
array of objects

Explicit role assignments on the organization's own entities. When entityRole is set, these override that default for named entities.

entities
clients
array of objects

Explicit role assignments on client entities. When clientRole is set, these override that default for named clients or entities.

clients
string

Employee-level default role for the organization's own entities. Stored for future entities and applied to existing entities unless entities provides overrides.

string

Employee-level default role for client entities. Stored for future client entities and applied to current client access unless clients provides overrides.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json