# OneLogin + Salesforce integration

> Keep user access, roles, and customer data aligned between your identity provider and CRM without manual intervention.

**Canonical page:** https://tray.ai/connectors/onelogin-salesforce-integrations/
**OneLogin connector:** https://tray.ai/connectors/onelogin-integrations/
**OneLogin documentation:** https://tray.ai/documentation/connectors/service/onelogin
**Salesforce connector:** https://tray.ai/connectors/salesforce-integrations/
**Salesforce documentation:** https://tray.ai/documentation/connectors/service/salesforce

## Overview

OneLogin and Salesforce do two very different jobs in your enterprise stack — one controls who gets access to what, and the other holds your most important customer relationships. When they're not talking to each other, IT teams spend hours manually provisioning users, reps lose access at the worst possible moments, and offboarding leaves security gaps open longer than anyone's comfortable with. Integrating OneLogin with Salesforce via tray.ai means identity events automatically trigger the right actions in your CRM, keeping both systems accurate, secure, and current.

Connecting OneLogin to Salesforce gives you real lifecycle management for everyone who touches your revenue platform — employees, partners, contractors. When a new sales rep is onboarded in OneLogin, they're instantly provisioned in Salesforce with the right profile, role, and permission sets. When someone leaves or changes departments, their Salesforce access is updated or revoked in real time, which eliminates the risk of unauthorized data exposure sitting around. Beyond user lifecycle, the integration opens up richer workflows: syncing contact and account data between platforms, automating audit trail collection for compliance, and making sure SSO events in OneLogin map accurately to Salesforce user records. For operations, IT, and security teams, this replaces tedious manual processes with automation you can actually rely on.

## Use cases

### Automated User Provisioning from OneLogin to Salesforce

When a new employee is created and assigned to a Salesforce-connected app in OneLogin, tray.ai automatically provisions a matching Salesforce user with the correct profile, role, and license type. No IT tickets, no delays — reps can access Salesforce from day one without any manual admin steps between HR onboarding and CRM access.

- Cut time-to-productivity for new sales hires by granting Salesforce access automatically
- Eliminate manual provisioning errors by pulling Salesforce roles directly from OneLogin groups
- Get consistent license and profile assignment tied to department or role mappings

### Real-Time User Deprovisioning on OneLogin Offboarding

When a user is deactivated or removed from the Salesforce application in OneLogin, tray.ai immediately deactivates the corresponding Salesforce user and optionally reassigns their open records to a manager or successor. Former employees don't retain CRM access after departure, and both platforms stay in sync without manual IT intervention.

- Revoke Salesforce access within seconds of OneLogin deprovisioning
- Automatically reassign leads, opportunities, and accounts to prevent data orphaning
- Maintain a complete audit log of deprovisioning events for compliance reporting

### Role and Profile Updates Based on OneLogin Group Changes

When a user's group membership changes in OneLogin — say, a promotion from Sales Development Rep to Account Executive — tray.ai detects it and updates the corresponding Salesforce user's profile, role hierarchy, and permission sets. CRM access stays aligned with your org structure without operations teams manually cross-referencing group changes against Salesforce admin tasks.

- Automatically adjust Salesforce permissions when job roles change in OneLogin
- Reduce misconfigured access caused by lag between HR changes and IT admin actions
- Keep role hierarchy data in Salesforce clean and in line with your actual org structure

### SSO Login Activity Sync for Salesforce Compliance Auditing

tray.ai captures OneLogin authentication events and SSO login activity, then writes summarized access records or custom object entries into Salesforce for compliance and auditing. Security and compliance teams can use Salesforce reports and dashboards to track who logged in, when, and from where — without needing a separate SIEM integration.

- Centralize access logs in Salesforce for compliance reporting and audit readiness
- Flag anomalous login behavior in OneLogin and create Salesforce cases or alerts automatically
- Stop cross-referencing separate admin consoles during security reviews

### Salesforce Contact Creation from OneLogin User Provisioning for Partners

When external partners or contractors are provisioned in OneLogin and assigned to partner-facing apps, tray.ai creates or updates corresponding Contact or Account records in Salesforce so partner managers have full visibility. Your Salesforce partner community reflects your live identity directory without manual data entry, and partner-facing teams can track onboarding status and access levels directly in the CRM.

- Surface new partner users in Salesforce automatically so partner managers can act immediately
- Keep Contact records accurate with identity data sourced directly from OneLogin
- Cut the delay between provisioning and CRM record creation for a smoother partner experience

### Automated Salesforce User License Reclamation

tray.ai regularly queries OneLogin for inactive or suspended users and cross-references them against active Salesforce licenses to find reclamation opportunities. When a Salesforce license is held by someone who's no longer active in OneLogin, an automated alert or deactivation workflow fires. IT and operations teams get control over licensing costs without running manual audits.

- Reclaim unused Salesforce licenses automatically by syncing inactivity signals from OneLogin
- Cut wasted SaaS spend without periodic manual license audits
- Track reclaimed licenses over time in Salesforce to report on cost savings

### Multi-Org Salesforce User Sync Triggered by OneLogin Events

For enterprises running multiple Salesforce orgs, tray.ai uses OneLogin provisioning events as a single source of truth to create or update users across all relevant Salesforce instances at once. A single group assignment in OneLogin fans out to provision the right user record, profile, and permissions in each target org — simplifying multi-org administration and keeping your entire Salesforce estate consistent.

- Provision users across multiple Salesforce orgs from a single OneLogin event
- Enforce consistent profile and permission standards across all Salesforce environments
- Reduce admin overhead for complex multi-org Salesforce architectures

## Templates

### Provision Salesforce User on OneLogin App Assignment

Automatically creates a new Salesforce user with the correct profile, role, and license type whenever a user is assigned to the Salesforce application in OneLogin, mapping group attributes to Salesforce fields.

Connectors used: OneLogin, Salesforce

### Deactivate Salesforce User on OneLogin Offboarding

Listens for user deactivation or app removal events in OneLogin and immediately deactivates the matching Salesforce user, then reassigns their open records to a designated manager or team queue.

Connectors used: OneLogin, Salesforce

### Sync OneLogin Group Changes to Salesforce Profiles and Roles

Monitors changes to a user's group membership in OneLogin and automatically updates their Salesforce profile, role, and permission set assignments to reflect their new position in the org.

Connectors used: OneLogin, Salesforce

### Write OneLogin SSO Events to Salesforce Custom Object for Audit

Captures authentication and SSO login events from the OneLogin event stream and writes structured records to a Salesforce custom object, enabling compliance dashboards and security review directly within Salesforce.

Connectors used: OneLogin, Salesforce

### Reclaim Inactive Salesforce Licenses Based on OneLogin Status

Runs on a schedule to compare active Salesforce licensed users against current OneLogin user status, flagging or deactivating Salesforce accounts for users who are suspended or inactive in OneLogin.

Connectors used: OneLogin, Salesforce

### Create Salesforce Partner Contact on OneLogin External User Provisioning

When an external partner or contractor is provisioned in OneLogin and assigned to a designated partner application, automatically creates or updates a corresponding Salesforce Contact under the correct Account for partner visibility.

Connectors used: OneLogin, Salesforce

## Challenges Tray.ai solves

### Mapping OneLogin Groups to Salesforce Profiles and Permission Sets

OneLogin organizes access through groups and roles, while Salesforce uses a layered model of profiles, roles, permission sets, and permission set groups. Keeping an accurate mapping between these two systems — especially as the org changes — is genuinely complex and breaks down fast when done manually.

**How Tray.ai helps:** tray.ai lets you define and manage a dynamic mapping table inside your workflow that translates OneLogin group names or role IDs to the exact Salesforce profile API names and permission set IDs. When mappings change, you update the configuration in one place rather than digging through code or manual processes.

### Handling Salesforce API Limits During Bulk Provisioning Events

Large-scale onboarding events — a new team coming over after an acquisition, for instance — can trigger hundreds of simultaneous provisioning requests to Salesforce, and hitting API rate limits means partial or failed user creation.

**How Tray.ai helps:** tray.ai has built-in rate limiting, retry logic, and batch processing that queues and throttles Salesforce API calls to stay within governor limits. Failed operations are automatically retried with exponential backoff and surfaced in error logs for review.

### Ensuring Bidirectional Data Consistency Between Systems

Changes made directly in Salesforce — like a Salesforce admin manually adjusting a user's profile — can fall out of sync with the authoritative state in OneLogin, creating drift that causes access inconsistencies over time.

**How Tray.ai helps:** tray.ai can run scheduled reconciliation workflows that compare the current state in both OneLogin and Salesforce, identify discrepancies, and either auto-correct them based on a defined source of truth or flag them for IT review.

### Securely Handling Sensitive Identity and CRM Credentials

Integrating an identity provider like OneLogin with a data-rich system like Salesforce means carefully managing API credentials, OAuth tokens, and webhook secrets — otherwise you're creating new exposure on both platforms.

**How Tray.ai helps:** tray.ai stores all credentials in an encrypted secrets vault and supports OAuth 2.0 flows natively for both OneLogin and Salesforce. Connections are scoped to least-privilege API access, and all workflow activity is logged with full auditability for security reviews.

### Managing Salesforce Record Ownership During User Deprovisioning

When a Salesforce user is deactivated, any records they own — leads, contacts, opportunities, cases — become orphaned or inaccessible unless ownership is transferred first. Identifying and reassigning those records at the moment of offboarding is time-sensitive and, done manually, is genuinely painful.

**How Tray.ai helps:** tray.ai's deprovisioning workflow automatically queries all Salesforce records owned by the departing user and bulk-reassigns them to a designated fallback owner, manager, or queue using Salesforce's bulk API — all within the same automated flow that deactivates the user account.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
