Okta Unexpectedly Deactivates Users After Changing Licenses in Salesforce Community
Last Updated:
Overview
When migrating or changing user licenses in Salesforce, Okta no longer recognizes the affected users during the next import and unexpectedly deactivates them. This occurs because the Okta Salesforce integration only imports the original license type. Update the Okta Salesforce Community integration settings to ensure the checkbox corresponding to the new target license UserType is active.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Integration Network (OIN)
- Salesforce.com Community Integration
Cause
When the Okta Integration Network (OIN) Salesforce application has the User Profile & Type set to Salesforce Community User, Okta queries users from Salesforce during import based on specific Salesforce Application Programming Interface (API) UserType values. When an administrator changes a user's Community license in Salesforce, Salesforce automatically modifies the user's underlying UserType value on the Standard User object. If the Okta Salesforce integration only imports the original license type, the Okta import query filters out any user switched to a new license. Because the import results omit the user, Okta interprets the user as removed or deactivated in Salesforce and deactivates the corresponding Okta user.
Solution
How is the unexpected deactivation resolved?
Navigate to the Salesforce.com Community Users application in the Okta Admin Console, edit the provisioning settings, and select the import checkbox that corresponds to the new Salesforce Community license.
- In the Okta Admin Console, navigate to Applications > Applications and open the Salesforce.com Community Users integration.
- Select the Provisioning tab, and then select To Okta under the Settings menu.
- In the General section, click Edit.
- Select the import checkbox that corresponds to the new Salesforce Community license.
NOTE: If performing a phased migration, keep both the old and new user type checkboxes selected until all users migrate so that Okta does not deactivate either group during intermediate imports.
- Click Save.
- Navigate to the Import tab and run a test import with a small batch of migrated users to verify that accounts remain active and properly linked before proceeding with a full-scale license migration.
