Demo All names and records here are made up, and the data resets every night. Please do not enter real personal information. ← Back to Find Care Scotland software · All software
Care Core

Documentation › Integrations › Provisioning from Entra (SCIM)

Provisioning from Entra (SCIM)

Pushing joiners and leavers in automatically.

SCIM (System for Cross-domain Identity Management) lets Microsoft Entra push people to Care Core, so joiners and leavers in your directory become joiners and leavers here without anyone typing. Care Core implements a SCIM 2.0 Users endpoint.

Sign-in and provisioning are separate. Sign in with Microsoft lets people sign in. SCIM creates and removes the people. You can use either or both.

How a SCIM user maps to Care Core

A SCIM user is a Care Core person (its SCIM id is the person’s UUID). The important attribute is active, which means “currently employed”:

Entra doesCare Core runs
Creates a user (POST /Users)The joiner process: person, employment (starting today), an invited login (which the person can use through Microsoft sign-in) and the new starter checklist. If a person with that email already exists and has left, it is a rehire: a new employment for the same person.
Sets active to false, or deletes the userThe leaver process, taking effect immediately: the employment ends (last day yesterday, so access has stopped as of today), team places and key worker links end, tasks are created, and every linked login is disabled straight away.
Sets active to true on someone who has leftA rehire (new employment) and their login is re-enabled.
Changes the nameFirst and last name are updated.
Changes the job titleA change of job title is recorded as a mover change from today, with history.

Care Core owns the rest: teams, line manager, hours, contract, registrations and everything else are managed in Care Core. Other SCIM attributes are ignored, as the SCIM standard allows. Entra’s externalId is stored as the employee reference.

Repeating a request is safe. Removing someone who has already left is not an error.

Setting it up in Entra

  1. In Care Core, open Admin › Integrations. Under SCIM choose Create token, give it a name (for example “Microsoft Entra”) and copy the token. It is shown once. Care Core keeps only a hash. Note the tenant URL shown there (https://YOUR-ADDRESS/scim/v2).
  2. In Entra, go to Enterprise applications › New application › Create your own application. Name it “Care Core provisioning” and choose Integrate any other application you don’t find in the gallery.
  3. Open Provisioning › Get started, set the mode to Automatic, and enter the Tenant URL and the Secret token. Choose Test connection.
  4. Under Mappings › Provision Microsoft Entra ID Users, keep these (others can be removed):
    Entra attributeSCIM attribute
    userPrincipalName (or mail)userName
    givenNamename.givenName
    surnamename.familyName
    jobTitletitle
    Switch([IsSoftDeleted], …) (default)active
    mailNickname or an employee idexternalId (the employee reference)
  5. Under Users and groups, assign the people (or a group) who should exist in Care Core. Only assigned people are provisioned.
  6. Set Provisioning status to On. Entra provisions on a cycle of about every 40 minutes. Use Provision on demand to try one person immediately.
The userName must equal the person’s sign-in name. It becomes their Care Core email address, and is what Microsoft sign-in matches on the first time they sign in.

What Care Core supports

RequestNotes
GET /scim/v2/ServiceProviderConfigDeclares: PATCH yes, filter yes (up to 100), bulk no, sort no, change password no.
GET /scim/v2/UsersLists users. Supports the filter userName eq "name@example.com" (the one Entra uses to check whether a user exists). Other filters return a clear error.
POST /scim/v2/UsersCreates (joiner or rehire). 409 if that person is already employed.
GET /scim/v2/Users/{id}One user.
PATCH /scim/v2/Users/{id}Operations replace and add, with or without a path. Accepts Entra’s string values "True" and "False" for active.
PUT /scim/v2/Users/{id}Replaces active, title and the name.
DELETE /scim/v2/Users/{id}Runs the leaver process; returns 204.

Authentication is a bearer token: Authorization: Bearer TOKEN. A missing or wrong token gets 401. A token belongs to one organisation, so it can only affect that organisation’s people. Tokens can be revoked on the same page, and show when they were last used.

Group provisioning (/Groups) is not provided. Roles are set in Care Core.

Try it by hand

curl -s https://YOUR-ADDRESS/scim/v2/Users \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/scim+json" \
  -d '{"userName":"ada@example.org","name":{"givenName":"Ada","familyName":"Lovelace"},"title":"Support Worker"}'

# then leave them (Entra sends the string "False")
curl -s -X PATCH https://YOUR-ADDRESS/scim/v2/Users/{id} \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/scim+json" \
  -d '{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
       "Operations":[{"op":"Replace","path":"active","value":"False"}]}'

Things to know

  • People are only created or ended by SCIM. Starting a person in Care Core without Entra is still fine; they simply are not in Entra’s scope.
  • Provisioning creates the person with today as the start date. If the real start date is later, edit it, or start the person in Care Core instead and let Entra take over once they have started.
  • Each SCIM action appears in the activity log as done by the system process “scim”.