SCIM Provisioning
Haltless is a SCIM 2.0 service provider (RFC 7643, RFC 7644) for users. Okta and Microsoft Entra ID use it to add joiners, keep their details current and deactivate leavers; this page is for anyone building their own client. Setting it up in Okta or Entra ID is covered in Single Sign-On and Provisioning.
Base URL and authentication
https://api.haltless.io/api/v1/scim/v2
Requests authenticate with the company's provisioning token, made in Settings → SSO → Provisioning (or with POST /api/v1/auth/sso/provisioning/token, see Authentication):
Authorization: Bearer hlt_scim_...
Content-Type: application/scim+json
The token belongs to one company and reaches only its people. Haltless keeps only a hash of it; making a new one retires the old one at once. Responses are application/scim+json. Requests count against the provisioning token's own rate limit, under the company's ceiling.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /ServiceProviderConfig | What the service supports |
GET | /ResourceTypes | The resource types (User only) |
GET | /ResourceTypes/User | The User resource type |
GET | /Schemas | The User schema and the enterprise extension |
GET | /Schemas/{schema_id} | One schema, by its URN (for example urn:ietf:params:scim:schemas:core:2.0:User); 404 for any other |
GET | /Users | List or find people |
POST | /Users | Create a person |
GET | /Users/{id} | Get a person |
PUT | /Users/{id} | Replace a person's attributes |
PATCH | /Users/{id} | Change some attributes, or deactivate |
DELETE | /Users/{id} | Deactivate and hide a person |
Groups, bulk operations, sorting, ETags and password changes are not supported (ServiceProviderConfig says so).
The User resource
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"id": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "00u1a2b3c4",
"userName": "ada.lovelace@acme.com",
"name": { "formatted": "Ada Lovelace", "givenName": "Ada", "familyName": "Lovelace" },
"displayName": "Ada Lovelace",
"title": "Maintenance Planner",
"active": true,
"emails": [{ "value": "ada.lovelace@acme.com", "type": "work", "primary": true }],
"phoneNumbers": [{ "value": "+44 20 7946 0000", "type": "work", "primary": true }],
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"employeeNumber": "E1042",
"department": "Maintenance"
},
"meta": {
"resourceType": "User",
"created": "2026-11-14T09:00:00Z",
"lastModified": "2026-11-14T09:00:00Z",
"location": "https://api.haltless.io/api/v1/scim/v2/Users/550e8400-e29b-41d4-a716-446655440000"
}
}
| Attribute | In Haltless | Notes |
|---|---|---|
userName | The person's user name at the provider | Required, unique in the company, compared without case. Usually the email. |
emails | The account's email | The primary (else work, else first) value. Without emails, the email is userName. |
name | The full name | formatted, else givenName and familyName, else displayName. Read back split at the last space. |
externalId | The provider's id for the person | Up to 255 characters. |
active | Whether the account can sign in | false deactivates and signs the person out on their next request. |
title | Job title | Up to 128 characters. |
phoneNumbers | Phone | The primary (else work, else first) value; up to 32 characters. |
enterprise department | Department | Up to 128 characters. |
enterprise employeeNumber | Employee id | Up to 64 characters. |
Other attributes (addresses, locale, nickname and so on) are accepted and ignored. A value longer than Haltless keeps is refused with 400 invalidValue, not cut short.
When userName is not the person's address (Microsoft Entra ID sends the user principal name), the account's email comes from emails and the user name is kept beside it, so userName filters still find the person.
List and find people
GET /Users?filter=userName eq "ada.lovelace@acme.com"&startIndex=1&count=100
Lists everyone in the company except service accounts and people the provider deleted, oldest first.
| Parameter | Default | Description |
|---|---|---|
filter | One eq comparison on userName, externalId, id or emails (emails.value and emails[type eq "work"].value work too). Values are compared without case, except externalId. | |
startIndex | 1 | 1-based. Values below 1 read as 1. |
count | 100 | Up to 200. 0 returns only totalResults. |
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 1,
"Resources": [{ "id": "550e8400-...", "userName": "ada.lovelace@acme.com", "...": "..." }]
}
Any other filter (co, sw, and, other attributes) returns 400 invalidFilter.
Create a person
POST /Users with a User resource. Response: 201 Created, with the resource and a Location header.
- The person starts with the company's default role for provisioned people, never an administrator role. Roles are changed in Haltless.
- The account has no password: the person signs in through the company's single sign-on. Its email counts as verified.
active: falsecreates the account deactivated.- A
userNameor email that another account already has returns409 uniqueness. Find it with a filter, thenPUTorPATCHit: that links the existing account to the provider. - If the provider deleted this person before, the old account is restored and reactivated, with its history, and returned with
201.
Replace a person
PUT /Users/{id} with a User resource. Response: 200 OK.
The attributes in the body replace the account's. Attributes Haltless keeps but the body leaves out (a phone number the person added in their profile, say) are kept.
Change a person
PATCH /Users/{id}:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{ "op": "replace", "path": "active", "value": false },
{ "op": "replace", "path": "name.familyName", "value": "Byron" },
{ "op": "add", "path": "phoneNumbers[type eq \"work\"].value", "value": "+44 20 7946 0000" },
{ "op": "replace", "path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:department", "value": "Maintenance" }
]
}
Response: 200 OK, with the resource.
opisadd,replaceorremove, in any case. Up to 100 operations.pathis any attribute in the table above, with or without a value filter. Without apath,valueis an object of attributes ({"active": false}).activeacceptstrueandfalse, as booleans or as the strings"True"and"False"Entra ID sends.removeclearstitle,phoneNumbers,externalId,departmentoremployeeNumber. RemovinguserName,emails,name,displayNameoractivereturns400 mutability.- An account that still signs in with a Haltless password keeps its email: changing it returns
400 mutability.
A PUT or PATCH on an account an administrator added links it to the provider: it shows as Provisioned in the portal from then on.
Delete a person
DELETE /Users/{id}. Response: 204 No Content.
The account is deactivated, not removed: its work orders, sign-offs and audit trail stay. It no longer appears in GET /Users, and GET /Users/{id} returns 404. A later POST of the same person restores it.
Errors
Errors use SCIM's shape:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],
"status": "409",
"scimType": "uniqueness",
"detail": "A user with this userName already exists"
}
| Status | scimType | When |
|---|---|---|
400 | invalidFilter | A filter Haltless does not answer |
400 | invalidSyntax | A body that is not a JSON object, or a malformed PATCH |
400 | invalidValue | A required value missing, an address that is not one, or a value too long |
400 | mutability | Removing a required attribute, or changing a password account's email |
400 | noTarget | remove without a path |
400 | tooMany | More than 100 PATCH operations |
401 | No token, not a current one, or single sign-on is not included for the company | |
404 | No such person in the company (or one the provider deleted) | |
409 | uniqueness | Another account has this userName or email |
429 | Rate limited; retry after Retry-After seconds |
Every change is recorded in the company's audit log with no user as actor and "via": "scim" in its details: scim_user_created, scim_user_updated, scim_user_deactivated, scim_user_reactivated, scim_user_deleted and scim_user_restored.