<?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 Re: Restrict Impersonation based on the role or group or even by user in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/restrict-impersonation-based-on-the-role-or-group-or-even-by/m-p/3460335#M552448</link>
    <description>&lt;P&gt;Please add a prefix such as &lt;STRONG data-start="68" data-end="76"&gt;Blog&lt;/STRONG&gt; or &lt;STRONG data-start="80" data-end="91"&gt;Article&lt;/STRONG&gt; so that readers can easily identify whether it’s a question, informational content, or knowledge-based material.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2026 10:49:11 GMT</pubDate>
    <dc:creator>Dr Atul G- LNG</dc:creator>
    <dc:date>2026-01-05T10:49:11Z</dc:date>
    <item>
      <title>Restrict Impersonation based on the role or group or even by user</title>
      <link>https://www.servicenow.com/community/itsm-forum/restrict-impersonation-based-on-the-role-or-group-or-even-by/m-p/3460331#M552447</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Restriction of impersonation to specific users can be implemented using a Script Include named "&lt;STRONG&gt;ImpersonateEvaluator"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This Script Include contains a function called &lt;STRONG&gt;canImpersonate&lt;/STRONG&gt;:&lt;/P&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;canImpersonate: function(currentUser, impersonatedUser) {
    return true;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;currentUser&lt;/STRONG&gt;: The user who is currently logged in&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;impersonatedUser&lt;/STRONG&gt;: The user whom the current user is attempting to impersonate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If the function returns &lt;STRONG&gt;true&lt;/STRONG&gt;, impersonation is allowed.&lt;BR /&gt;If it returns &lt;STRONG&gt;false&lt;/STRONG&gt;, impersonation of that specific user is restricted.&lt;/P&gt;&lt;P&gt;This logic can be customized based on business requirements. For example, users belonging to a specific &lt;STRONG&gt;HR group&lt;/STRONG&gt; can be prevented from being impersonated due to their access to sensitive information, which is the primary reason for this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reach out to me for more information.&lt;/P&gt;&lt;P&gt;Thanks for reading,&lt;BR /&gt;&lt;STRONG&gt;Badrinarayan&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 10:46:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/restrict-impersonation-based-on-the-role-or-group-or-even-by/m-p/3460331#M552447</guid>
      <dc:creator>Badrinarayan</dc:creator>
      <dc:date>2026-01-05T10:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Impersonation based on the role or group or even by user</title>
      <link>https://www.servicenow.com/community/itsm-forum/restrict-impersonation-based-on-the-role-or-group-or-even-by/m-p/3460335#M552448</link>
      <description>&lt;P&gt;Please add a prefix such as &lt;STRONG data-start="68" data-end="76"&gt;Blog&lt;/STRONG&gt; or &lt;STRONG data-start="80" data-end="91"&gt;Article&lt;/STRONG&gt; so that readers can easily identify whether it’s a question, informational content, or knowledge-based material.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 10:49:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/restrict-impersonation-based-on-the-role-or-group-or-even-by/m-p/3460335#M552448</guid>
      <dc:creator>Dr Atul G- LNG</dc:creator>
      <dc:date>2026-01-05T10:49:11Z</dc:date>
    </item>
  </channel>
</rss>

