1. Home
  2. Knowledge Base
  3. Integrations
  4. End User Sync with Microsoft Entra ID (SCIM)

End User Sync with Microsoft Entra ID (SCIM)

This guide connects a customer’s Microsoft Entra ID tenant to Startly so that Entra pushes users into Startly as End Users, with SCIM 2.0 provisioning.

Microsoft’s own reference for this flow is Tutorial: Develop and plan provisioning for a SCIM endpoint in Microsoft Entra ID and Configure automatic user provisioning to a non-gallery app.

You need:

  • In Startly: permission to manage Settings → Integrations → End User Sync.
  • In Entra: the Application Administrator or Cloud Application Administrator role (or Global Administrator) in the customer’s tenant.

1. How it works

Microsoft Entra ID ──(SCIM 2.0, OAuth2 client credentials)──▶ Startly identity service ──▶ Startly End Users

  • Unlike the LDAP sync types (Active Directory, Okta, Google), Startly never connects to Entra. Entra pushes changes to Startly on its own schedule: an initial cycle, then an incremental cycle about every 40 minutes.
  • Each Startly sync configuration gets its own credentials (client ID and secret) and its own SCIM endpoint. One customer can have several configurations, and users from different configurations never mix.
  • What Startly does with each change:
    Entra event Result in Startly
    User assigned / in scope, first cycleEnd User created for the configuration’s customer
    User attributes change End User updated (mapped fields only)
    User disabled ( accountEnabled = false ) or removed from scope / unassigned End User deactivated
    Group assigned Ignored. Groups are not used by Startly, so leave group provisioning disabled (see step 5).
  • There is no “test connection” or “sync now” button on the Startly side. Testing is done from Entra (Test connection and Provision on demand). Each burst of pushed changes shows up in Startly as a sync session.

2. Create the sync configuration in Startly

2.1 Open End User Sync

  1. Open Settings.
  2. Go to the Integrations tab.
  3. Select End User Sync. It lists all existing sync configurations (LDAP and SCIM).
  4. Click ⊕ (top right) to add a configuration.

2.2 Create the configuration

  1. Customer: the customer whose End Users this configuration creates and updates.
  2. Active: leave it checked. An inactive configuration rejects every request from Entra (see 10.3).
  3. Protocol: SCIM.
  4. Sync Name: any name that tells admins where the users come from, e.g. Entra ID – ABC Customer .
  5. Sync Types: Microsoft Entra ID. (SCIM 2.0 is for other SCIM-capable identity providers. The settings are the same.)
  6. Click Create Configuration.

The protocol can’t be changed after the configuration is saved.

2.3 Copy the provisioning settings

After saving, the drawer shows the connection settings Entra needs. Keep this drawer open in a separate tab; you’ll copy each value into Entra in step 4.

Startly field Example Goes to Entra field
Tenant URL https://identity.startly.com/realms/<id>-sync/scim/v2 Tenant URL
OAuth Token Endpoint https://identity.startly.com/realms/<id>-sync/protocol/openid-connect/token OAuth token endpoint
Client ID scim-3db4d28b9be941d29677b7bcf9457fa0 Client identifier
Client Secret (hidden; use the eye icon or the copy button) Client secret

Use the copy buttons rather than selecting text, so that no spaces or characters are lost.

Click Next to go to the data mappings.

2.4 Data mappings

The mappings say which SCIM attribute fills which Startly End User field.

Startly End User field Source field (SCIM attribute) Notes
First Name name.givenName Required, fixed
Last Name name.familyName Required, fixed
Email emails[type eq "work"].value Required, fixed. Entra’s default mapping sends mail here.
Title title Predefined. Entra’s default mapping sends jobTitle here.
Department/Class/Grade, Business Phone, Mobile Phone empty by default Map them with a custom attribute name (see 7)
Manager empty Not supported over SCIM yet. Entra sends the manager as a reference to another user, not as text. Leave it empty.
Preferred Contact Method a fixed value (e.g. Email) Not read from Entra. Every synced End User gets this value.
Custom field rows (Add Mapping) a name you choose, e.g. customDate See 7

Click Save. On save, Startly registers every mapped attribute with its identity service, so it can receive that attribute’s values from Entra. Always save the mappings in Startly before you add the matching attribute mapping in Entra.

The copy icon at the end of a row copies the attribute’s full SCIM path, which is the exact text to enter in Entra.

3. Create the enterprise application in Entra

3.1 New application

Sign in to the Microsoft Entra admin center (or the Azure portal) and go to Identity → Applications → Enterprise applications → All applications.

Click New application.

3.2 Create your own application

Startly isn’t in the Entra gallery, so click Create your own application.

  1. Name: e.g. Startly or Startly – End User Sync . Entra suggests gallery apps with similar names (Smartly, Sortly, …); ignore them.
  2. Select Integrate any other application you don’t find in the gallery (Non-gallery).
  3. Click Create. It takes a few seconds; the application’s Overview page then opens.

3.3 Open Provisioning

In the application’s left menu, open Manage → Provisioning (or 3. Provision User Accounts → Get started). If Entra shows a start page, click Connect your application / Get started. Entra then shows the provisioning menu (Connectivity, Attribute mapping, Scoping filters, …) used in the next steps.

4. Connect Entra to Startly (Connectivity)

  1. Open Manage → Connectivity.
  2. Select authentication method: OAuth2 client credentials grant. Don’t use Bearer authentication with a long-lived token; Startly issues short-lived tokens through the client credentials grant.
  3. Tenant URL: Startly’s Tenant URL (ends with /scim/v2 ).
  4. OAuth token endpoint: Startly’s OAuth Token Endpoint (ends with /protocol/openid-connect/token ).
  5. Client identifier: Startly’s Client ID ( scim-… ).
  6. Client secret: Startly’s Client Secret.
  7. How credentials are sent: Header. Scope: leave empty.
  8. Click Test connection.

A successful test shows:

Then click Save at the top of the page. Entra doesn’t let you save the connection until the test passes.

If the test fails, see Troubleshooting.

5. Choose who is provisioned (Scoping filters)

Scoping decides which Entra users Entra sends to Startly.

Open Manage → Scoping filters and click Edit. A four-step wizard opens.

5.1 Scope settings

Users tab:

  • Enable user provisioning: Enabled
  • Object actions: Create, Update, Delete. Keep Delete: that’s how Startly finds out a user was removed, and deactivates the End User.

Groups tab:

  • Enable group provisioning: Disabled. Startly doesn’t use groups. Enabling it only creates extra traffic and objects that are never used.

5.2 Scope by assignment

Users scope:

Option Who is synced When to use
Selected users (recommended) Only users and groups assigned to the application under Manage → Users and groupsMost customers. You decide exactly who becomes an End User, and can start with a few test users.
All users Every user in the Entra tenantOnly when the whole tenant belongs to this one customer.

With Selected users, assign users (or groups, whose members are then provisioned) under Manage → Users and groups → Add user/group. Assigning groups requires Microsoft Entra ID P1 or P2. Nested groups are not expanded: only direct members are provisioned.

5.3 Scope by attribute (optional)

Narrows the scope further by user attribute, e.g. department EQUALS Staff or accountEnabled EQUALS true . Clauses within one filter are combined with AND; separate filters are combined with OR. Leave it empty if assignment is enough.

5.4 Review and save

Check the summary and click Save.

6. Map attributes

Open Manage → Attribute mapping, tab Users.

Entra starts with a default set of mappings (left: Entra attribute, right: SCIM attribute sent to Startly). The ones Startly uses are:

Source attribute (Entra) Target attribute (SCIM) Startly field Required
userPrincipalName userName the user’s identity in Startly. Keep Matching precedence = 1. Yes
givenName name.givenName First Name Yes
surname name.familyName Last Name Yes
mail emails[type eq "work"].value Email Yes
Switch([IsSoftDeleted], …) active End User active/inactive Yes. Don’t delete it: it’s how a disabled user is deactivated.
jobTitle title Title if Title is mapped in Startly
anything you choose urn:ietf:params:scim:schemas:extension:startly:2.0:User:<name> custom mapping see 7

Notes:

  • Email must be filled in. Startly matches an existing End User of the customer by email, and End Users need an email to receive notifications. If the customer’s users have no mail in Entra, change the source of emails[type eq "work"].value to userPrincipalName (edit the row, then Source attribute).
  • The other defaults (addresses, phoneNumbers[type eq "fax"] , displayName , externalId , enterprise department / employeeId / manager , …) can stay. Startly accepts them but only reads the attributes listed in its own data mappings (2.4). Removing the ones you don’t need makes provisioning logs easier to read.
  • Don’t change the matching attribute ( userName ). If you do after users were provisioned, Entra can’t find the existing users and creates duplicates.
  • If a value has to be transformed (e.g. combine fields, use a default), set Mapping type to Expression (see Microsoft’s expression reference).

Click Save after editing mappings.

7. Custom fields

Use this for anything beyond first name, last name, email and title, e.g. Department/Class/Grade, phones, or a Startly custom field. Each one needs three matching pieces:

  1. a mapping row in Startly,
  2. an attribute in Entra’s schema for the application,
  3. an attribute mapping in Entra that fills it.

The name must start with a letter and may contain only letters, digits, - and _ (e.g. customAttribute , grade , cost-center ). It’s case-sensitive: use the same spelling everywhere.

7.1 Startly: add the mapping and copy the full path

  1. Open the configuration’s Data Mappings in Startly.
  2. For a standard field (e.g. Department/Class/Grade), type the name in its Source Field. For a custom field, click Add Mapping, pick the Startly custom field on the left (e.g. Test DD) and type the name on the right (e.g. customAttribute ).
  3. Click Save. This step is required before Entra can send the value.
  4. Click the row’s copy icon (Copy full SCIM attribute path). The copied text looks like:

urn:ietf:params:scim:schemas:extension:startly:2.0:User:customAttribute

7.2 Entra: add the attribute to the application’s schema

On Attribute mapping, open Advanced options → Edit customappsso user attributes. (customappsso is Entra’s internal name for non-gallery SCIM apps.)

  1. Scroll down and click + Add new attribute.
  2. Paste the full path from Startly into the name field. Type: String . Leave Primary key, Required, Multi-value, Exact case unchecked.
  3. Click Save and confirm.

Repeat for each custom attribute. Entra only lets you add an attribute once.

7.3 Entra: map a source attribute to it

Back on Attribute mapping (Users), click Add attribute mapping.

  • Mapping type: Direct (or Expression / Constant if needed)
  • Source attribute: the Entra attribute holding the value, e.g. department , telephoneNumber , mobile , employeeType , an extensionAttribute1–15 , or a directory extension
  • Default value (if null): optional
  • Target attribute: the attribute added in 7.2 ( urn:ietf:params:scim:schemas:extension:startly:2.0:User:<name> )
  • Apply this mapping: Always
  • Match objects using this attribute: No

Click Add. The new row appears in the list:

Click Save at the bottom of the page.

7.4 Typical custom mappings

Startly field Name in Startly Entra source attribute
Department/Class/Grade department department
Business Phone businessPhone telephoneNumber
Mobile Phone mobilePhone mobile
Any custom field your choice any user attribute or expression

Use these names in both Startly and Entra (Entra’s default department mapping targets the enterprise schema, which Startly doesn’t read for Department; add a separate mapping to the startly attribute).

7.5 Value formats

Values arrive as text and are converted to the Startly custom field’s type:

  • Single-select fields: the value must equal an active option’s label (case-insensitive).
  • Multi-select fields: several labels separated by , or ; . Labels that don’t match an option are skipped; the rest are applied.
  • Date, number and other fields: the value must be in a format the field accepts. A date is safest as ISO yyyy-MM-dd ; if Entra stores it differently, convert it with an Expression (e.g. FormatDateTime ).
  • An empty value leaves the End User’s current value as it is.
  • A value that can’t be converted is skipped, and the reason is recorded on the sync session.

8. Test with Provision on demand

Before turning provisioning on for everyone, push one user and check the result.

  1. Open Provision on demand.
  2. Search for a test user. With scope Selected users, the user must be assigned to the application first (5.2).
  3. Click Provision.

Entra shows four steps, each of which should show Success:

  1. Import user: Entra read the user from the directory.
  2. Determine if user is in scope: the user passed the scoping rules. If not, check assignment and attribute filters.
  3. Match user between source and target system: Entra looked the user up in Startly by userName . The first time, it’s not found, which is expected.
  4. Perform action: the user was created (first time) or updated in Startly. View details lists every attribute sent, so you can check custom attributes have the expected values.

Check in Startly:

  • End Users: the user appears as an End User of the configuration’s customer, with the mapped fields filled.
  • End User Sync → configuration → sessions: a Push session with the created/updated users. A session stays open while Entra keeps sending changes and is closed after 15 minutes without activity, so it may still show as in progress right after the test.

9. Start provisioning

  1. Open Manage → Provisioning (in older layouts, the Provisioning page with Settings).
  2. Optional but recommended:
    • Send an email notification when a failure occurs: on, with an admin mailbox.
    • Prevent accidental deletion: on, with a threshold (e.g. 50). Entra then stops before deactivating more than that many users in one cycle.
  3. Set Provisioning Status to On / click Start provisioning, then Save.

The initial cycle sends every user in scope and can take a while for large tenants (Entra handles about 1,000– 2,000 users per 20–40 minutes). After that, incremental cycles run about every 40 minutes and send only changes. Progress and the last cycle’s result are on the application’s Overview page.

10. Day-to-day operations

10.1 Monitoring

  • Entra → Provisioning logs: one entry per user per action, with success/failure and the error returned by Startly.
  • Startly → End User Sync → configuration sessions: each burst of changes is a Push session with counts of created/updated/deactivated users.

10.2 Rotating the client secret

  1. Startly: open the configuration, click Regenerate next to Client Secret. The old secret stops working immediately.
  2. Entra: Connectivity → paste the new Client secret → Test connection → Save.

Provisioning fails until Entra has the new secret. Entra retries, so no changes are lost if this is done quickly.

10.3 Pausing provisioning

  • From Entra (preferred): Provisioning → Stop provisioning. Entra resumes from where it was when restarted.
  • From Startly: uncheck Active on the configuration. Entra’s requests are then rejected; after repeated failures Entra puts the job in quarantine and emails the admins. Reactivate the configuration, then Restart provisioning in Entra.

Neither removes users already synced: End Users stay as they are.

10.4 Leaving and returning users

  • A user disabled in Entra, unassigned, or removed from scope is deactivated in Startly (after the next cycle).
  • Known limitation: if that user is enabled or assigned again, the End User is updated but stays Inactive. An admin must reactivate them in Startly.

10.5 Changing mappings later

  • New attribute: do the three steps of section 7, Startly first.
  • Changes apply to users when Entra next sends them. To update all users at once, Restart provisioning in Entra (this runs a full cycle).

11. Troubleshooting

Symptom Likely cause Fix
Test connection fails with invalid client / 401 Wrong client ID or secret, or the secret was regenerated Copy the client ID and secret from Startly again
Test connection fails with unauthorized_client or 403 The Startly configuration is inactive Set it to Active
Test connection fails with a 404 / host error Tenant URL or token endpoint mistyped, or swapped Copy them from Startly again. The tenant URL ends with /scim/v2 , the token endpoint with /token .
User shows Skipped / not in scope Not assigned to the application, or excluded by an attribute filter Users and groups / Scoping filters
Custom attribute is empty in Startly Startly mapping not saved; Entra target path misspelled (it is case-sensitive); or the Entra source attribute is empty for that user Compare Provision on demand → View details with the path copied from Startly; save the Startly mapping, then re-provision the user
Custom field value not applied although Entra sent it The value doesn’t fit the field type (e.g. unknown option label, wrong date format) Check the sync session’s notes in Startly; fix the value or add an Expression in Entra (7.5)
Duplicate users in Startly The matching attribute ( userName ) was changed after users were provisioned Restore userPrincipalName → userName with matching precedence 1
End User missing email mail is empty in Entra Map userPrincipalName to emails[type eq "work"].value (6)
Job is in quarantine Repeated failures (credentials, inactive configuration) Fix the cause, then Restart provisioning
A user came back but is inactive in Startly Known limitation (10.4) Reactivate the End User in Startly

For anything else, open Provisioning logs, filter by the user, and include the log entry’s Error code and Job ID in the support request.

Was this article helpful?

Related Articles