<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to end the user session in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-end-the-user-session/m-p/484210#M55989</link>
    <description>&lt;P&gt;There are two instances A and B. When a user submits the request in instance A, they get admin access in instance B(through REST webservice). Admin access is auto revoked(through REST webservice) after 2 hours. However admin access still remains since the user session is active in instance B.&lt;/P&gt;
&lt;P&gt;Is there any way to kill the user session ?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 10:33:40 GMT</pubDate>
    <dc:creator>Rahul Singh7</dc:creator>
    <dc:date>2022-01-07T10:33:40Z</dc:date>
    <item>
      <title>How to end the user session</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-end-the-user-session/m-p/484210#M55989</link>
      <description>&lt;P&gt;There are two instances A and B. When a user submits the request in instance A, they get admin access in instance B(through REST webservice). Admin access is auto revoked(through REST webservice) after 2 hours. However admin access still remains since the user session is active in instance B.&lt;/P&gt;
&lt;P&gt;Is there any way to kill the user session ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:33:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-end-the-user-session/m-p/484210#M55989</guid>
      <dc:creator>Rahul Singh7</dc:creator>
      <dc:date>2022-01-07T10:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to end the user session</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-end-the-user-session/m-p/484211#M55990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you want to kill user instance in instance B via some API call?&lt;/P&gt;
&lt;P&gt;you can create scripted rest api in instance B of type POST and invoke it from instance A and send the user name via API in JSON request body&lt;/P&gt;
&lt;P&gt;in scripted rest api you can use this script to kill user session&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;GlideSessions.lockOutSessionsInAllNodes('userName');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:41:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-end-the-user-session/m-p/484211#M55990</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-01-07T10:41:44Z</dc:date>
    </item>
  </channel>
</rss>

