Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Admin users are forced to logout when connecting via SSO - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Admin users are forced to logout when connecting via SSO
KB0792460

Admin users are forced to logout when connecting via SSO


976 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Admin users are forced to logout when connecting via SSO

Cause

There were 3 accounts for one single user, and two of them were using the same email.
Okta and ServiceNow don't allow duplicated emails.


The SAML request gets the information from OKTA, the SAML Responds is retuning/bringing the email; the database query is executed against the sys_user table and in this case returned multiple rows. The first one returned is used no matter if the active flags is true or false. The SSO script determines if the account is not active then refuse the login.

Resolution

Remove the email from one of the accounts.

At authentication time, Single Sign On Script queries the database sys_user table using the email address returned by the identity provider, and expect a user_name in return.


Email addresses when are used for authentication purposes, it must be unique. By default, instances are configured to use user_name as unique identifier for user record.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.