Skip to main content

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​

MethodPathDescription
GET/ServiceProviderConfigWhat the service supports
GET/ResourceTypesThe resource types (User only)
GET/ResourceTypes/UserThe User resource type
GET/SchemasThe 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/UsersList or find people
POST/UsersCreate 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"
}
}
AttributeIn HaltlessNotes
userNameThe person's user name at the providerRequired, unique in the company, compared without case. Usually the email.
emailsThe account's emailThe primary (else work, else first) value. Without emails, the email is userName.
nameThe full nameformatted, else givenName and familyName, else displayName. Read back split at the last space.
externalIdThe provider's id for the personUp to 255 characters.
activeWhether the account can sign infalse deactivates and signs the person out on their next request.
titleJob titleUp to 128 characters.
phoneNumbersPhoneThe primary (else work, else first) value; up to 32 characters.
enterprise departmentDepartmentUp to 128 characters.
enterprise employeeNumberEmployee idUp 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.

ParameterDefaultDescription
filterOne 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.
startIndex11-based. Values below 1 read as 1.
count100Up 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: false creates the account deactivated.
  • A userName or email that another account already has returns 409 uniqueness. Find it with a filter, then PUT or PATCH it: 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.

  • op is add, replace or remove, in any case. Up to 100 operations.
  • path is any attribute in the table above, with or without a value filter. Without a path, value is an object of attributes ({"active": false}).
  • active accepts true and false, as booleans or as the strings "True" and "False" Entra ID sends.
  • remove clears title, phoneNumbers, externalId, department or employeeNumber. Removing userName, emails, name, displayName or active returns 400 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"
}
StatusscimTypeWhen
400invalidFilterA filter Haltless does not answer
400invalidSyntaxA body that is not a JSON object, or a malformed PATCH
400invalidValueA required value missing, an address that is not one, or a value too long
400mutabilityRemoving a required attribute, or changing a password account's email
400noTargetremove without a path
400tooManyMore than 100 PATCH operations
401No token, not a current one, or single sign-on is not included for the company
404No such person in the company (or one the provider deleted)
409uniquenessAnother account has this userName or email
429Rate 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.