JIT Provisioning with Salesforce
Test Salesforce's Just-in-Time provisioning by sending custom attributes, groups, and roles in the SAML assertion.
Prerequisites
Complete the Salesforce SSO setup guide first.
1. Enable JIT in Salesforce
- In Setup → Single Sign-On Settings, edit your SSO configuration.
- Check "User Provisioning Enabled" (Just-in-Time).
- Save.
2. Configure personas with attributes
- In your realm's directory, edit a persona or create a new one.
- Add custom attributes that Salesforce expects for JIT. The standard ones:
User.UsernameUser.EmailUser.FirstNameUser.LastNameUser.ProfileId— the 15/18-char Salesforce profile ID
- Assign groups and roles to the persona if you want to test those mappings.
- On the SAML tab, enable the groups and/or roles attribute toggles and set their attribute names to match what Salesforce expects.
3. Test JIT provisioning
- Trigger SSO from Salesforce and pick the persona with JIT attributes.
- If the user doesn't exist in Salesforce yet, JIT should create them using the attributes from the assertion.
- Check the new user in Salesforce — verify that the profile, name, email, and any other attributes were provisioned correctly.
4. What to look for
- Does the user get created with the correct profile and permissions?
- What happens when a required attribute is missing from the assertion?
- Does a second login with updated attributes update the existing user?
- How does Salesforce handle groups and roles from the assertion?