To set up SAML in ServiceNow, create an identity provider in Multi-Provider SSO, import its metadata, and give the identity provider the instance service provider metadata. Then verify user matching, certificates, routing, and provisioning before widening access. Test the intended instance address and diagnose failures from the returned SAML response.
Prepare the SAML ServiceNow configuration
Start by agreeing which identity provider will authenticate which users, which instance address they will use, and whether unknown users should receive new user records. These decisions affect different settings. A working certificate does not establish the correct user mapping, and successful authentication does not prove that provisioning follows your intended account policy.
Use the broader ServiceNow single sign-on guide to frame the access model. If the identity team is still choosing a protocol, settle that choice before entering SAML properties; the separate OIDC integration guide covers that neighboring configuration.
The steps here use Brazil behavior; check the available fields, menu placement, and installed SSO plugin on your instance and release. For creating an external identity provider, the required roles are sso_config_admin, business_rule_admin, script_include_admin. Have the identity team supply the intended provider metadata and identify the signing certificate before starting.
Create the identity provider and exchange metadata
After configuring the Multi-Provider SSO properties, navigate to All > Multi-Provider SSO > Identity Providers. Select New > SAML. MultiSSOV2_SAML2_custom is the default value of Single Sign-On Script on the Advanced tab, rather than a creation option. Import the identity provider metadata from a URL or as XML, or enter the provider information manually. Keep the configuration associated with the intended instance throughout the exchange.
Check the SAML certificate record rather than assuming that importing metadata has completed certificate setup. Its PEM Certificate field needs the PEM-formatted certificate. Compare that value with the signing certificate in the provider’s SAML response, and verify that the record is active and has not expired.
The Advanced tab includes Metadata URL from which IDP properties are imported. When populated, this supports automatic SAML certificate import if the previous certificate has expired. An upgrade from SAML2 Update 1 or a manually configured connection does not populate this value automatically. Check it when planning certificate changes with the identity team.
Next, generate the instance service provider metadata. This action requires sso_config_admin, business_rule_admin, script_include_admin:
- For Multi-Provider SSO, open the intended record under Multi-Provider SSO > Identity Providers and click Generate Metadata.
- For the SAML 2 SSO plugin, navigate to SAML 2 Single Sign-on > Metadata instead.
- Copy the generated metadata from the text box and provide it to the identity provider administrator.
- Review the identity, audience, and consumer endpoint values together before testing authentication.
The generated service provider metadata comes from the instance system property settings. Generating it does not independently prove those settings are right. If the identity provider rejects a request, compare the values actually exchanged rather than relying on a record name that appears correct.
Check custom addresses and provider routing
Generating service provider metadata for a custom URL installation requires custom_url_admin. The identity provider’s method for adding the Assertion Consumer Service URL can differ between Azure, ADFS, and Okta. Confirm the endpoint arrangement for the provider you use instead of carrying settings from another provider unchanged.
For the Okta custom-address setup, use separate ServiceNow UD Okta applications for the base and custom addresses. Test the base-address Identity Provider record while signed in through the base address; use the custom address when testing its associated record. Keeping those entry points aligned helps distinguish a metadata problem from an incorrect test context.
Routing deserves its own test. A SAML SSO cookie can direct authentication to its specified IdP. An enabled auto-redirect IdP can also determine where authentication goes. On the external login page, an existing user’s SSO Source can identify a federated or associated provider.
For a browser reaching the external login page, an active default IdP can authenticate an existing user when neither the user nor company record specifies an SSO source. It can also authenticate an unknown user when auto-provisioning is disabled. Test these fallback cases separately from Auto Redirect IdP behavior; do not assume that the Default checkbox overrides cookies or account associations.
For help planning this work, see ServiceNow implementation.
Configure provisioning as a separate decision
SAML provisioning updates the User table using fields mapped from the identity provider. Before enabling it, decide which identity attributes should create or update which user fields. Administering this provisioning requires sso_config_admin, business_rule_admin, script_include_admin.
- Open Multi-Provider SSO Properties. The menu may expose Properties directly or through Administration > Properties; use the route available on the instance.
- Select Enable Auto Importing of users from all identity providers into the user table, then click Save.
- Open the intended record under Multi-Provider SSO > Identity Providers.
- Select Auto-provision Users if an unknown user should receive a User table record.
- Select Update User Record Upon Each Login if login should refresh user information from the provider.
- Open User Provisioning Transform Map and adjust the mapping as needed.
After an upgrade, you may need to configure the form to expose the two provisioning fields. The first unknown user’s login creates the import set table fields from the metadata.xml file; mapping fields from the IdP table depends on that first login. Include this dependency in the pilot sequence rather than expecting a complete field list beforehand.
Test an existing account and an unknown account separately. Inspect the resulting user record and mapped values after each test. A successful redirect back into the instance does not show whether the correct fields were populated or whether later logins will overwrite information you intended to maintain elsewhere.
Before each provisioning test, write down whether a record should be created, which fields should change, and which provider should authenticate the account. Compare those three expectations with the saved user record after login.
Resolve test failures by the value that disagrees
Use Test Connection results alongside instance logs. Group failures by certificate, response identity, request correlation, and timing. This keeps troubleshooting focused: changing several unrelated properties at once can hide which correction resolved the failure.
- Certificate: For the Test Connection warning about the IdP x509 certificate, inspect the instance log for a missing certificate, certificate mismatch, expiry, or signature-profile failure. Compare the certificate record’s PEM value with the X509 Certificate in the SAMLResponse. The record may be missing, inactive, expired, or incorrectly formatted. The IdP may have changed its signing certificate without the instance record being updated.
- Audience: For the Test Connection warning about the Audience URI field, look for an assertion audience mismatch or audience-restriction failure in the log. Compare the instance Audience URI with the SAMLResponse audience. The assertion addresses an audience different from the one configured on the instance.
- Issuer: For an invalid assertion issuer in Test Connection, compare the expected and returned issuer values in the log. Match the response’s entity identifier against the configured Identity Provider URL. The identity provider’s entity identifier differs from the value configured in ServiceNow.
- Request correlation: For failed subject confirmation in Test Connection, look for an InResponseTo mismatch in the log. Compare the response with the request that started this login. The response can belong to another request, or a bookmark can contain an old SAMLRequest. An unexpected null value can also indicate routing between instance nodes.
- Timing: For failed subject validation in Test Connection, look for future or expired subject timestamps in the log. Compare those validity boundaries with both systems’ clocks before changing the glide.authenticate.sso.saml2.clockskew property. The provider and instance clocks may disagree. Check the actual property value on the instance before adjusting the tolerance; do not assume a default.
Keep a test record containing the entry address, selected provider, account state, observed failure, and correction. If the team later needs a reporting view of its operational records, review the Core UI report types before choosing a presentation. Keep the evidence needed to reproduce the authentication problem alongside the test outcome.
Preserve access when cloning an instance
Cloning an instance with SAML requires sso_config_admin, business_rule_admin, script_include_admin. Preserve the target’s SAML-related properties, certificates, and users. Include attachments so certificates carry over, and clear the Theme check box when preserving the specified properties.
Exclude the Multi SSO tables sso_properties, digest_properties, and saml2_update1_properties. Configure the SAML records independently for each instance and configure the corresponding records at the identity provider. A clone should retain the target’s authentication configuration. Transferring SAML or Multi-SSO settings usually fails because the identity provider also needs instance-specific configuration; replacing a working target configuration can block users from signing in.
Create a local administrator account on the target User table with a sys_id absent from the source. Keep the Multi SSO provider record’s sys_id unchanged; changing it forces users to clear their cookies. Include target authentication in the post-clone acceptance checks before handing the instance back to its users.
Answers to common SAML setup edge cases
What happens when several providers can provision a new user?
On the external login page, an unknown user can choose among enabled auto-provisioning identity providers when more than one is available. Test that selection with a new account. When one provisioning provider is available, it is selected automatically; Auto Redirect IdP is a separate fallback in the provisioning flow.
Why can a valid response fail with a SessionIndex message?
ServiceNow requires SessionIndex in the SAML response. Ask the identity provider administrator to inspect that value when the test reports SessionIndex not valid; replacing an otherwise correct certificate will not supply the missing response element.
What does a Requester status indicate?
A Requester status means the identity provider rejected the login request. Inspect the request sent from the instance with the provider administrator. The returned response may not contain enough detail to identify the rejected setting by itself.
Does E-Signature need additional setup?
Yes. For SAML 2.0 Update 1 with E-Signature active under Multi-SSO, the system adds separate E-signature properties to saml2_update1_properties. Review the endpoint index, consumer URL, and authentication request URL there. These properties replace the SAML properties for this path. Other SAML versions require different configuration; test signature authentication separately.
What does a Microsoft Entra SAML sign-in to ServiceNow need in place, and why is SSO not the same thing as user provisioning?
A Microsoft Entra SAML sign-in to ServiceNow needs an Entra enterprise application for ServiceNow, the multi-provider SSO plugin on the instance, administrative access on both sides, and a user identifier that matches in each system. SSO only governs how a person proves identity at login. Provisioning is a separate job that creates, updates and disables user records.
What has to exist before the first sign-in test
- The multi-provider SSO plugin on the ServiceNow instance, because the Entra configuration runs through it.
- An Entra enterprise application for ServiceNow, carrying the identity-provider metadata and the SAML settings for the ServiceNow connection.
- Administrative access on the Entra and ServiceNow sides.
- A consistent user identifier. Choose the attribute Entra sends and confirm the ServiceNow user record holds the same value.
Why sign-in and provisioning are separate decisions
SAML sign-in between Entra and ServiceNow is a configuration exercise, not a custom authentication build. Provisioning is the ongoing work of keeping user records present and current for new hires and leavers.
- Authentication: does the user get into the instance through Entra?
- Record: does a user record exist with the expected fields?
- Membership: do groups and roles follow the directory, or were they set by hand?
Gallery provisioning and SCIM are different paths
Entra’s gallery provisioning for ServiceNow creates, updates and disables users, and provisions groups and their memberships. Explicit SCIM is a separate path that runs on ServiceNow’s SCIM plugin, with Basic Authentication or OAuth, and, as of November 2026, configuring it needs the scim_admin role. Entra performing automatic provisioning does not make the gallery path SCIM, so confirm which path is configured before you scope the work.
Provisioning checks to run once sign-in works
- Lookup references. Department and location values must already exist in ServiceNow and match what Entra sends. Otherwise provisioning can fail with InvalidLookupReference.
- Matching attributes. Every user in scope needs the matching attribute populated. A blank value produces EntryJoiningPropertyValueIsMissing.
- Nested groups. Entra processes only direct members of explicitly assigned groups. Someone who sits in a nested group is not provisioned through it, so assign the group that holds the users directly.
- Disabled accounts. A disabled Entra user is not provisioned as a new target user.
What to ask the identity team for
- The name of the Entra enterprise application and the groups assigned to it, not a description of the intended population.
- A statement of which provisioning path is configured: gallery provisioning or SCIM.
- The account Entra uses to write to ServiceNow, its roles, and who owns its credentials. As of November 2026, the gallery path calls for an account with the admin role.
- Confirmation that the directory license covers group-based assignment. As of November 2026, that needs Entra ID P1 or P2, and it should not be assumed for every basic sign-in.