Provision external users in Okta from Salesforce

CRMMarketingRecipe ToolsIdentity Management

What it does

When someone updates a Salesforce contact with Portal Access status set to Send to Workato, this automation searches Salesforce for that contact and user. It validates prerequisites, provisions the user in Okta with the correct profile based on portal type, and updates Salesforce.

Who it's for

IT teams who onboard external users and need Okta provisioning to happen automatically when Salesforce records are ready.

How teams use this

Onboard a country portal user

When a contact is marked Send to Workato with Country Portal selected, the automation provisions them in Okta with the country-specific profile and updates Salesforce so the team knows provisioning is complete.

Provision users for a new portal type

Extend this automation to handle a new portal type by adding a condition in the profile update step. The rest of the flow stays the same and only the profile assignment logic changes.

Notify admins when provisioning fails

Retarget this automation to send a Slack notification to an admin channel when prerequisites fail or Okta provisioning encounters an error, so issues are caught immediately.

Batch provision users on a schedule

Change the trigger from real time to a scheduled batch so multiple contacts marked Send to Workato are provisioned together in Okta each night, reducing API calls and improving efficiency.

How it works

  1. Detect a portal access update. When a Salesforce contact record is created or updated with Portal Access status set to Send to Workato, this automation starts in real time.
  2. Search Salesforce for contact and user. Search Salesforce for the contact and any existing user record to confirm the data before provisioning in Okta.
  3. Validate prerequisites before provisioning. Call the prerequisite function to validate that all required fields and conditions are met before Okta provisioning begins.
  4. Provision the user in Okta. Create the user in Okta and assign the correct profile based on the portal type from the Salesforce record.
  5. Update the Salesforce record. Update the contact record in Salesforce to reflect that provisioning succeeded, so the team has a single source of truth.