Just-In-Time (JIT) user provisioning
Automatically provision users in Harness when they first log in via SAML SSO using Just-In-Time provisioning.
Just-In-Time (JIT) provisioning in Harness automatically creates user accounts when users log in for the first time via SAML single sign-on (SSO). JIT provisioning eliminates the need to manually invite each user to Harness by creating user accounts dynamically based on the SAML assertion sent by your identity provider (IdP).
The key principle is that JIT provisioning only handles user creation automatically. Authorization (permissions, group memberships, roles, and resource groups) requires separate configuration through SAML authorization settings and user group linking. Users only receive permissions if they are placed in Harness user groups that already have role bindings configured.
What you will learn in this topic
By the end of this topic, you will be able to:
Understand how JIT provisioning works with SAML SSO.
Enable JIT provisioning in Harness for supported identity providers.
Before you begin
Before you enable JIT provisioning in Harness, ensure you have the following:
SAML SSO configured: An active SAML SSO provider already configured in Harness (Okta, Microsoft Entra ID, OneLogin, or Keycloak). Go to the appropriate SAML SSO guide to configure your provider:
Account administrator permissions: Account administrator access in Harness to configure authentication settings. Go to RBAC in Harness to review roles and permissions.
Users assigned in IdP: Users must exist in your identity provider and be assigned to the Harness SAML application before they can use JIT provisioning.
How JIT provisioning works
This describes the JIT provisioning flow when a user logs in to Harness for the first time via SAML SSO.
When a user attempts to log in to Harness:
The user is redirected to your configured identity provider (IdP) for authentication.
After successful authentication, the IdP sends a SAML assertion containing user attributes (email, name, groups) back to Harness.
Harness checks if the user already exists in the account:
If the user exists: Harness authenticates the user and grants access based on their assigned roles and permissions.
If the user does not exist and JIT provisioning is enabled: Harness validates the SAML assertion against configured JIT validation rules (if any), creates a new user account using the email from the assertion, and grants access.
If JIT validation rules are configured, the SAML assertion must contain the specified validation key-value pair for automatic provisioning to occur. If the validation fails, the user is denied access.
Enable JIT provisioning in Harness
To enable JIT provisioning for your SAML SSO provider, do the following:
In your Harness account, go to Account Settings -> Authentication.
Select SAML Provider to add a new SAML provider, or select Login via SAML to edit an existing provider.
If creating a new provider, enter a Name for the SAML provider and select your IdP (Okta, Microsoft Entra ID, OneLogin, or Other).
Select Enable JIT Provisioning.

Enable JIT provisioning in Harness (Optional) To control who can get added to Harness on their first login, specify JIT Validation Key and JIT Validation Value, which serve as the key-value that must be present in the SAML assertions.
Complete the remaining SAML provider configuration, such as uploading metadata, configuring entity ID, and enabling authorization if needed.
Select Save or Add.
After you enable JIT provisioning, new users who authenticate via SAML SSO are automatically created in Harness on their first successful login.
User management with JIT provisioning
The following table compares user management workflows with and without JIT provisioning enabled.
User invitation
You must manually invite users to Harness before they can log in via SAML SSO.
You do not need to manually invite users to Harness.
Invitation process
Users receive an email invitation to join Harness.
No email invitation is required.
First login
After accepting the invitation and logging in for the first time via SAML SSO, their email addresses are registered in Harness.
On first successful SAML SSO login, Harness automatically creates a user account with the email address from the SAML assertion.
User access
Users can log in only after accepting the invitation.
The user can immediately log in to Harness. However, roles and resource groups are not assigned automatically. Users only receive permissions if they are placed in Harness user groups that already have role bindings configured.
IdP requirements
Users must be assigned to the Harness SAML application in your IdP.
Users must be assigned to the Harness SAML application in your IdP.
Group membership
User groups must be manually assigned in Harness.
If SAML authorization is enabled, the user is automatically added to Harness user groups based on IdP group memberships.
Troubleshooting
Related articles
SAML SSO with Okta - Configure Okta as a SAML SSO provider with JIT provisioning.
SAML SSO with Microsoft Entra ID - Configure Microsoft Entra ID as a SAML SSO provider with JIT provisioning.
SAML SSO with OneLogin - Configure OneLogin as a SAML SSO provider with JIT provisioning.
SAML SSO with Keycloak - Configure Keycloak as a SAML SSO provider with JIT provisioning.
RBAC in Harness - Understand roles, permissions, and user group management.
Manage user groups - Create and manage user groups for role-based access control.
Last updated
Was this helpful?