<?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 Use GlideSecurityManager.get() to reset the user's security profile in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/use-glidesecuritymanager-get-to-reset-the-user-s-security/m-p/2234029#M886013</link>
    <description>&lt;P&gt;I have created this&amp;nbsp;UI action, which adds the &lt;STRONG&gt;snc_read_only&lt;/STRONG&gt; role to the user. The problem I'm having is that sometimes after I log out and back in - even though the role has been created in the&amp;nbsp;&lt;STRONG&gt;sys_user_has_role&lt;/STRONG&gt; table and is showing in the user's related roles list - it is not active, and the user can still enjoy full administrator rights. If I log out twice it works 100% correctly&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/79098i3421C41216BE2587/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the script action:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/79099i75797F730228AAB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have tried adding the GlideSecurityManager.get(); which should in theory refresh the user's profile, but it made no difference whatsover &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 13:42:48 GMT</pubDate>
    <dc:creator>tomas6</dc:creator>
    <dc:date>2018-12-04T13:42:48Z</dc:date>
    <item>
      <title>Use GlideSecurityManager.get() to reset the user's security profile</title>
      <link>https://www.servicenow.com/community/developer-forum/use-glidesecuritymanager-get-to-reset-the-user-s-security/m-p/2234029#M886013</link>
      <description>&lt;P&gt;I have created this&amp;nbsp;UI action, which adds the &lt;STRONG&gt;snc_read_only&lt;/STRONG&gt; role to the user. The problem I'm having is that sometimes after I log out and back in - even though the role has been created in the&amp;nbsp;&lt;STRONG&gt;sys_user_has_role&lt;/STRONG&gt; table and is showing in the user's related roles list - it is not active, and the user can still enjoy full administrator rights. If I log out twice it works 100% correctly&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/79098i3421C41216BE2587/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the script action:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/79099i75797F730228AAB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have tried adding the GlideSecurityManager.get(); which should in theory refresh the user's profile, but it made no difference whatsover &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 13:42:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-glidesecuritymanager-get-to-reset-the-user-s-security/m-p/2234029#M886013</guid>
      <dc:creator>tomas6</dc:creator>
      <dc:date>2018-12-04T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use GlideSecurityManager.get() to reset the user's security profile</title>
      <link>https://www.servicenow.com/community/developer-forum/use-glidesecuritymanager-get-to-reset-the-user-s-security/m-p/2234030#M886014</link>
      <description>&lt;P&gt;The session might be still active, I guess you would need to invalidate the user session after the access is removed&lt;/P&gt;
&lt;P&gt;Please refer this post to see on how it can be done -&amp;nbsp;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=725587addbd8dbc01dcaf3231f9619ac&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 06:45:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/use-glidesecuritymanager-get-to-reset-the-user-s-security/m-p/2234030#M886014</guid>
      <dc:creator>Alikutty A</dc:creator>
      <dc:date>2018-12-05T06:45:33Z</dc:date>
    </item>
  </channel>
</rss>

