LDAP Automatically Provision Users in Salesforce
To make ldap automatically provision users in salesforce, link your directory to an identity provider. Then set up SCIM or SAML to build user profiles when staff log in. Teams often use this flow to stop manual account work. Admins add a worker to a local group. The system then creates a profile in the cloud app. Still, teams often map broad default roles to speed up onboarding. This mistake gives too many people admin rights over sensitive customer data. How to make ldap automatically provis
Just-in-Time Access + LDAP Directory Services: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
To make ldap automatically provision users in salesforce, link your directory to an identity provider. Then set up SCIM or SAML to build user profiles when staff log in.
Teams often use this flow to stop manual account work. Admins add a worker to a local group. The system then creates a profile in the cloud app. Still, teams often map broad default roles to speed up onboarding. This mistake gives too many people admin rights over sensitive customer data.
How to make ldap automatically provision users in salesforce
Salesforce does not read from a local directory by itself. You need an identity provider to sit between the directory and the cloud app. This middle tool reads your local user list and groups. It then sends user details to the cloud app using standard web protocols.
Teams choose between two main ways to create accounts. The first way creates an account right when the user logs in. The identity provider sends a signed message with the user email and role. The cloud app reads this message and builds or updates the user profile.
The second way uses a background sync protocol. The identity provider pushes new users and group changes on a set schedule. When HR removes a worker from the local directory, the sync turns off their cloud profile. This background flow keeps license counts clean without waiting for a login event.
Mapping directory groups to cloud roles and profiles
Setting up the account is only the first step. You must also map local groups to specific profiles and permission sets. Each user needs a license type, a base profile, and a role in the org chart. Your identity provider pulls these values from directory attributes and sends them over.
Problems start when directory groups do not match cloud roles well. Many teams put all engineers or analysts into one big group. They map that single group to a high-level profile so nobody gets blocked. Soon, dozens of staff have full read and write permissions across all tables.
Just-in-Time Access + LDAP Directory Services: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Clean role mapping takes regular work from both IT and security teams. You should split groups by job duty instead of department name. Give base profiles very few rights at first. Then use smaller permission sets to grant extra capabilities only when needed.
What directory sync solves and what it leaves open
Automated user setup saves hours of manual IT ticket work. It makes sure new hires get into their tools on day one. Most importantly, it cuts off login rights when someone leaves the company. Security teams rely on this link to keep orphan accounts out of the system.
Yet user sync only controls who can log into the app. It does not check what a person or script does during an active session. Once a user or service account has a role, every query runs unchecked. A broad role lets an engineer export thousands of phone numbers or emails at once.
Shared admin accounts and backend scripts create another big blind spot. Teams often use these accounts to sync data to internal databases. Directory rules cannot pause a bad command or mask card numbers in query results. True safety requires checking individual requests and commands while they run.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.
Before a query runs, hoop.dev guardrails check the statement against your rules, an AI Analyzer you configure can score intent or hold risky calls for human approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Can Salesforce read from an LDAP directory directly?
No, the platform does not talk to local LDAP servers by itself. You must use an identity bridge or provider to translate directory data into SAML or SCIM.
What is the difference between login provisioning and SCIM sync?
Login provisioning builds or updates the account only when the user signs in. SCIM sync pushes new accounts, updates, and deactivations in the background right when directory changes happen.
How do you remove permissions when a user leaves the team?
When you use SCIM sync, removing the user from the directory deactivates their cloud profile. If you only use login provisioning, you must turn off the account by hand or API.
Related guides
In this post