Redirect to other instance url by automatic authentication with given credentials
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello All,
In the source instance, there is a button that opens an article in the target instance when clicked, but it requires authentication.
Is there any workaround that would allow automatic login using the provided target instance credentials, or any other approach so that users do not need to enter credentials manually?
Note: The users in the source and target instances are different.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@Ankur Bawiskar any suggestions??
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
There is no supported way to embed credentials in a URL to auto-login a user into another ServiceNow instance — it is explicitly a security anti-pattern and the platform does not provide this. Since the user accounts differ between instances, SSO alone will not transparently authenticate them either.
Practical options:
1. Make the article public on the target — set the knowledge base's "Can Read" user criteria to allow Public, and ensure the article does not require login. Simplest if the content is not sensitive.
2. SSO with provisioned users — configure both instances against the same IdP (SAML 2.0 / OIDC) and provision matching users in the target. The user will SSO into the target on click.
3. Server-side fetch — from the source, call the target's Knowledge REST API (/api/sn_km_api/knowledge/articles/{sys_id}) using OAuth or a service account, and render the article inside the source instance. No user redirect, no manual login.
