Accounts in applications

Okta to Salesforce integration: Salesforce users with profile, language and manager from Okta, frozen on suspension

With an integration between Okta and Salesforce, a colleague in an Okta group for Salesforce automatically gets a Salesforce user with the right profile, permission sets, language, locale, time zone and manager, and that user is closed as soon as Okta suspends or deactivates them. A suspension in Okta freezes the Salesforce user, a deactivation sets it to inactive.

Okta logoSourceOktaA user joining or leaving a Salesforce group in Okta, a profile change, a suspension or a deactivation in Okta
KoppelHetYour rules, set per field
Salesforce logoTargetSalesforce
  • Salesforce user with username and Federation ID
  • Profile and permission sets from Okta groups
  • Language, locale and time zone
  • Job title, department, division and employee number

How it works

Design, platform and support in one place

For Okta and Salesforce: a tailored integration, on our own platform, that we keep managing after go-live.

Design

Set per field before we build

Which data goes where, when, and what happens with exceptions. You approve the design; the quote follows from it.

More on how we work
Okta logoSalesforce logo
Detailed designWhat is transferred
  • login→ Username en FederationIdentifier
  • firstName, lastName, email→ FirstName, LastName, Email
  • employeeNumber→ EmployeeNumber
  • title, department, division, organization→ Title, Department, Division, CompanyName

Platform

Every run visible, every error reported

Per integration and per employee you see what was processed. If something goes wrong, you get an alert with the reason.

More about the platform
HistoryOkta → Salesforce
Example
  • 09:003 changesOK
  • 08:00No changesOK
  • 05:00Alert with explanationResolved

Support

We keep it running

We handle vendor API changes. The people who built the integration also answer your questions.

Trust Center
ISO 27001
Support after go-liveOne team to turn to
  • 24/7 monitoring
  • API changes handled
  • Hosting in Amsterdam

The project

From first conversation to ongoing support

An integration starts from your HR process, not the API. We only build after you approve the design, and you choose the go-live moment.

The project in ten steps

  1. Step 1IntakeQuestions a consultant has prepared for your systems.
  2. Step 2Detailed designField by field what happens, with exceptions and test scenarios.
  3. Step 3Approval and quoteYou approve the design; the quote follows from it.
  4. Step 4Build and testOn our platform, then your acceptance test.
  5. Step 5Go-live and supportAt a moment you choose. After that we monitor it.

What the integration does

Organisations that use Okta as identity provider and Salesforce for sales or service often create Salesforce users by hand, even when sign-in already runs through Okta. A leaver deactivated in Okta then stays active in Salesforce and keeps a licence occupied.

  1. Okta gets groups for the Salesforce profiles; KoppelHet gets an event hook and a service app with read rights on users and groups.
  2. In Salesforce the administrator creates a connected app and an integration user with the right to manage users.
  3. When someone joins a Salesforce group, KoppelHet creates the user with profile, language, time zone and the Okta login as Federation ID.
  4. Profile changes in Okta, such as a new job title or manager, go along straight away.
  5. A suspension freezes the Salesforce user; a deactivation or leaving the group sets it to inactive.
Okta → KoppelHet → SalesforceSOURCEOktaTARGETSalesforceKoppelHetmapping · logging · monitoringOkta → KoppelHet → SalesforceSOURCEOktaTARGETSalesforceKoppelHetmapping · logging · monitoring
Out: Salesforce user with username and Federation ID · Profile and permission sets from Okta groups · Language, locale and time zone · Job title, department, division and employee number · Manager · Freezing and deactivating

What to watch for with Okta and Salesforce

  • Okta has suspension for temporary and deactivation for permanent. Salesforce has two counterparts for that - freezing and deactivating. KoppelHet freezes a Salesforce user on suspension and unfreezes them when Okta lifts the suspension, so someone gets their own records and licence back after leave.
  • An Okta login is unique within your own Okta org, but a Salesforce username must be unique across all Salesforce environments, including those of other companies. KoppelHet therefore always puts the Okta login in the Federation ID for single sign-on, and picks an agreed variant when the username is taken.
  • Okta stores the locale as a language code and country code with an underscore, such as nl_NL, and the preferred language with a hyphen, such as nl-NL. Salesforce uses the underscore form for both and supports only a limited set of languages. KoppelHet converts the preferred language and falls back to English when Salesforce does not know the language.
  • The time zone field in an Okta profile is free text without a fixed format, while Salesforce requires a time zone from its own list. KoppelHet checks the Okta value against that list and otherwise uses a time zone per country, so creation does not fail on a typo in Okta.
  • Okta stores the manager as the ID of another Okta user. In Salesforce only an existing Salesforce user can be manager, and by no means every manager has a licence. KoppelHet follows the manager chain in Okta upwards to the first person who is in Salesforce.
  • A colleague can be in several Salesforce groups in Okta, but a Salesforce user has exactly one profile. KoppelHet gives the groups a fixed priority for the profile and adds the rest as permission sets.
  • Okta delivers event hooks at least once and not always in order. A profile notification can therefore arrive after a deactivation. KoppelHet orders by the timestamp in the notification and skips duplicates, so a deactivated colleague does not become active again in Salesforce.

This integration is also part of joiner, mover, leaver.

How we build and run it

  • The integration runs on the KoppelHet platform, hosted in a data centre in the EU.
  • Every sync and every error is visible in the functional log; on an error your administrator is notified.
  • A change that cannot go through is not half-applied but queued for another attempt.
  • KoppelHet is ISO 27001 certified. Data travels encrypted and stays on the platform no longer than needed.
  • After go-live we manage the integration and adjust it when your process changes.
  • The integration fits next to your existing integration layer. Only the fields in the design are transferred; the platform keeps no register of its own.

Implementation, architecture and compliance

Implementation and price

This is not an app you switch on. We build the integration for your organisation on our platform, with building blocks we reuse on every project. So it is custom work that does not start from scratch.

A consultant prepares the intake and analyses both systems. We then record the mapping and exceptions field by field, test in the test or acceptance environment and go live at a moment you choose. Costs are a one-off amount for the setup and a monthly amount for platform, monitoring and support.

Price indication · Basic

Leave your work email and we will email you the price indication for this integration.

We only use your address to follow up on your question about this integration.

Frequently asked questions

Does sign-in through Okta keep working?

Yes. KoppelHet fills the Federation ID with the Okta login, the field Salesforce uses to recognise sign-in through Okta.

Why Okta as the source and not the HR system?

If Okta is already filled from HR, one source for Salesforce is simpler. Without a complete Okta profile the HR system can be the source; see for example Workday or HiBob to Salesforce.

Technical details for IT

For those who want to know how it works under the hood: APIs, fields and sources used.

  • Okta through event hooks (group.user_membership.add and .remove, user.account.update_profile, user.lifecycle.suspend, .unsuspend and .deactivate; three-second timeout, one retry, at-least-once delivery) and the Users API with an OAuth 2.0 service app (okta.users.read, okta.groups.read). Profile fields login, email, employeeNumber, title, department, division, organization, locale, preferredLanguage (RFC 7231), timezone and managerId.
  • Salesforce through the REST API on the User object with a connected app (OAuth 2.0) and an integration user with Manage Users. Username, FederationIdentifier, EmployeeNumber, Title, Department, Division, CompanyName, LocaleSidKey, LanguageLocaleKey, TimeZoneSidKey, ManagerId, ProfileId; permission sets through PermissionSetAssignment; UserLogin.IsFrozen on suspension and IsActive = false on deactivation.

Which fields are transferred

The key fields. The full mapping is agreed per customer.

Field in OktaField in SalesforceNotes
loginUsername en FederationIdentifierAgreed variant if the username exists elsewhere in Salesforce
firstName, lastName, emailFirstName, LastName, Email
employeeNumberEmployeeNumber
title, department, division, organizationTitle, Department, Division, CompanyName
locale (en_US)LocaleSidKey
preferredLanguage (nl-NL)LanguageLocaleKeyHyphen becomes underscore; fallback to English
timezoneTimeZoneSidKeyChecked against Salesforce's list
managerIdManagerIdFirst manager in the chain with a Salesforce user
Groepen in OktaProfileId en PermissionSetAssignment
status SUSPENDED of DEPROVISIONEDUserLogin.IsFrozen of IsActive = false

Related

Which systems do you want to connect?

Tell us which systems you use and what should happen automatically. Together we define the smallest working solution, with a clear design and a quote before building.