<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Create a Salesforce Contact for Users Not Assigned to the Salesforce App Using Okta Workflows
Okta Classic Engine
Okta Identity Engine
Workflows

Overview

This article explains how to create a Salesforce Contact for users who are not assigned to the Salesforce application using Okta Workflows.

 

Solution

The solution has two flows:

  1. List Salesforce users: finds users who are not assigned to Salesforce
  2. Add Salesforce contact: creates a Salesforce contact

 

List unassigned users

The List Salesforce users flow finds users who are not assigned to the Salesforce application.

 


List users not assigned to Salesforce. 

 

How the flow works

  1. The Okta-List Users Assigned to Application action returns every user assigned to the Salesforce application (assigned users).
  2. The List-Pluck card extracts and returns just the user IDs from the assigned users list.
  3. The Okta-List Users with Search card returns every user in the Okta org with a status of PROVISIONED (all users).
  4. The List-Pluck function extracts and returns just the user IDs from the all users list.
  5. The List-Difference function compares all users against assigned users and returns unassigned users — the user IDs that exist in the org but are not assigned to the Salesforce application.
  6. The List-For Each card iterates over the unassigned users list. It passes each user to the helper flow to create a Salesforce Contact.

 

Create Salesforce Contact

The Add Salesforce contact flow creates a Salesforce contact.

 


Create a Salesforce Contact.

 

How the flow works

  1. The Helper Flow card receives a User ID from the main flow.
  2. The Okta-Read User action returns user information: UsernameFirst nameLast namePrimary email, and Title.
  3. The Salesforce-Create Record action creates a new contact record in Salesforce.

 


New Contacts in Salesforce.

 

Related References

 

 

Loading
How to Create a Salesforce Contact for Users Not Assigned to the Salesforce App Using Okta Workflows