Skip to main content
POST
Create a SaaS identity directly, with no provisioning ticket
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

saasId
string
required

Body

application/json
employeeId
string

The Primo employee ID the identity belongs to, as returned by the employee endpoints (id field). When set, the identity is linked to that employee and its email is taken from the employee record. This is NOT a SaaS identity ID.

Minimum string length: 1
email
string<email>

Email of the account on the SaaS application. Required when employeeId is omitted; ignored when employeeId is set, since the employee email is used instead.

Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
groups
string[]

Groups the account belongs to, as IDs from getSaasByIdgroups[].id.

Minimum string length: 1
roles
string[]

Roles the account holds, as IDs from getSaasByIdroles[].id.

Minimum string length: 1
licenses
string[]

Licenses the account holds, as IDs from getSaasByIdlicenses[].id.

Minimum string length: 1
organizationUnits
string[]

Organization units the account belongs to, as IDs from getSaasByIdorganizationUnits[].id.

Minimum string length: 1

Response

default - application/json
id
string
required

The created SaaS identity ID. Pass this value as saasApplicationUserId to archiveSaasApplicationUser or deleteSaasApplicationUser.