<h2>Service Exchange Connection Shows Down/Down After Applying Permanent Fix for User Not Authenticated Error</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <p style="margin: 3pt 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">After applying the permanent fix for the Service Exchange (Service Bridge) "User Not Authenticated" error as described in the related Knowledge Base article, the connection status changes to Down/Down on both the consumer and provider sides. The Remote Peer Status (RPS) may still show Active/Active, and inbound transactions may continue to arrive, but outbound transactions fail.</span></p> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Symptoms</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <ul style="margin-top: 3pt; margin-bottom: 3pt; list-style-position: inside;"><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The Service Exchange connection status displays Down/Down on both the consumer and provider instances after applying the permanent fix.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The Remote Peer Status (RPS) shows Active/Active despite the connection being reported as Down/Down.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Inbound transactions (for example, catalog order requests) may still be received, but outbound transactions fail.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The OAuth credential record for the affected connection shows the token is no longer valid. A <em>"User not Authenticated"</em> error is observed in the token invalidation logs.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Outbound records in the Transport Queue (sn_transport_queue) accumulate with an Error status.</span></li></ul> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Facts</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <ul style="margin-top: 3pt; margin-bottom: 3pt; list-style-position: inside;"><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The permanent fix (migration to the Client Credentials grant type) requires Service Bridge version 2.3.10 or higher on both instances.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The fix requires coordinated configuration changes on both the consumer and provider instances.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">On the provider instance, the OAuth Application Registry contains two records for the connection: one of Type "OAuth Client" and one of Type "OAuth Provider".</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">The OAuth Application User field must be set on the correct record (the OAuth Client record) for authentication to succeed.</span></li></ul> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Release</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <p style="margin: 3pt 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">All currently supported releases</span></p> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Cause</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <p style="margin: 3pt 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">During the application of the permanent fix, the OAuth Application User (the Service Bridge integration user) was set on the wrong OAuth Application Registry record. The provider instance has two records for the connection:</span></p> <ul style="margin-top: 3pt; margin-bottom: 3pt; list-style-position: inside;"><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="color: #333333;">Service Bridge Client</span></strong><span style="color: #333333;"> (Type: OAuth Client) — This is the correct record for the OAuth Application User.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="color: #333333;">Service Bridge Provider</span></strong><span style="color: #333333;"> (Type: OAuth Provider) — This record should <strong><em>not</em></strong> have the OAuth Application User set.</span></li></ul> <p style="margin: 3pt 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">When the OAuth Application User is mapped to the Provider record instead of the Client record, the Service Bridge authentication flow fails, causing the connection to go Down/Down even though the RPS remains Active/Active.</span></p> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Resolution</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <p style="margin: 3pt 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Correct the OAuth Application User assignment on the provider instance by following these steps:</span></p> <ol style="margin-top: 3pt; margin-bottom: 3pt; list-style-position: inside;"><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Navigate to All > System OAuth > Application Registry.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Filter the list where Type is "OAuth Client" or Type is "OAuth Provider" and the Name contains the connection identifier (for example, the PCN number).</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Open the Service Bridge Provider record (Type: OAuth Provider). Clear the OAuth Application User field. Save the record.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Open the Service Bridge Client record (Type: OAuth Client). Set the OAuth Application User field to the connection’s integration user (for example, "sb_user.<connection_identifier>"). Save the record.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">Navigate to the Service Exchange connection record and verify that the connection status returns to Up/Up on both instances.</span></li><li style="margin: 3pt 0in 3pt 0px; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="color: #333333;">If outbound Transport Queue records accumulated in Error status during the outage, refer to the related article on reprocessing errored Transport Queue records to recover the undelivered payloads.</span></li></ol> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h3 >Related Links</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"><br /><a href="https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2944968"><span style="color: #0563c1;">Preferred solution to the Service Exchange (Service Bridge) User Not Authenticated error (KB2944968)</span></a><span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div></article></div>