<?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: Can't Impersonate Users in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353429#M10355</link>
    <description>&lt;P&gt;Here is the script that will unlock all the users in one go.&lt;/P&gt;
&lt;P&gt;Navigate to System Definition&amp;gt; scripts-background and run below script&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var tab = new GlideRecord('sys_user');
tab.query();
while(tab.next()){
tab.active =true;
tab.locked_out = false;
tab.setWorkflow(false); //helps in prevent running of BR's while updating
tab.autoSysFields(false);
tab.update();
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Please mark my response as&amp;nbsp;correct answer and helpful&amp;nbsp;if it helped solved your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;-Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Prateek kumar&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 00:25:01 GMT</pubDate>
    <dc:creator>Prateek kumar</dc:creator>
    <dc:date>2020-03-31T00:25:01Z</dc:date>
    <item>
      <title>Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353410#M10336</link>
      <description>&lt;P&gt;Still pretty new to ServiceNow, and our implementation is just getting off the ground. Completed the SN Fundamentals course and am trying to learn more in my own Dev instance (Madrid). Right out of the gate though I'm running into an issue. I can't impersonate users.&lt;/P&gt;
&lt;P&gt;I'm logged in as Admin. When I pull up the Impersonate option, anyone I try to search for to impersonate returns "No Matches Found." I already did some digging around in the forums here, and have tried modifying the READ ACL for sys_user.locked_out as detailed &lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=ad664be1db1cdbc01dcaf3231f961954" rel="nofollow"&gt;here&lt;/A&gt;&amp;nbsp;with no luck. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Yes, I am logged in as Admin. I did quite a bit of Impersonating during training, so I know how the process works. Yes, the user(s) I'm trying to impersonate are in the system. The problem I get is that when the Impersonate box pops up, and I enter a name to search for, it returns "No Matches Found." It doesn't matter who I search for. Nothing returns.&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/136188iA8EF6A934C962480/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;&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/136186i8C35EAB891C3346F/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;</description>
      <pubDate>Thu, 18 Jul 2019 19:24:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353410#M10336</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-18T19:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353411#M10337</link>
      <description>&lt;P&gt;When you say "anyone I try to search for", you do mean users listed within ServiceNow right? Go to the System Security - Users and then search for the person you are looking for. If you cannot find them there, then they do not exist.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:31:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353411#M10337</guid>
      <dc:creator>CharlesG2504556</dc:creator>
      <dc:date>2019-07-18T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353412#M10338</link>
      <description>&lt;P&gt;hey John,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i didn't totally understand your requirement , but if you are asking how to impersonate the user ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here are the steps-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/F0BD4BAAE8637C6CB0F9E26108F14A96/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then click on impersonate user-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/F0BD4BAAE8637C6CB0F9E26108F14A96/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select the user , from whom you want to impersonate , or you can also search user with name , then you will be impersonate !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Abid&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:37:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353412#M10338</guid>
      <dc:creator>Inactive_Us2237</dc:creator>
      <dc:date>2019-07-18T19:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353413#M10339</link>
      <description>&lt;P&gt;The user you are trying to impersonate should be in ServiceNow. This means, you can impersonate only those users, which exist in Users table. Can you check if the user you are trying to impersonate is a part of it? I think you are already aware, that you can impersonate someone who doesn't exist in the system, right? Let us know your comments.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:47:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353413#M10339</guid>
      <dc:creator>sagarsolanki</dc:creator>
      <dc:date>2019-07-18T19:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353414#M10340</link>
      <description>&lt;P&gt;Try removing and adding the permission again if that helps.&lt;/P&gt;
&lt;P&gt;Let me know if&amp;nbsp;this user can open User table and search Users ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:48:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353414#M10340</guid>
      <dc:creator>Ashish77</dc:creator>
      <dc:date>2019-07-18T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353415#M10341</link>
      <description>&lt;P&gt;The search box is not a contains search, its a starts with.&amp;nbsp; Looking at the display value for the user.&amp;nbsp; So, for example, you couldn't pull up System Administrator by searching for admin.&amp;nbsp; Try that out?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:53:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353415#M10341</guid>
      <dc:creator>Chris M3</dc:creator>
      <dc:date>2019-07-18T20:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353416#M10342</link>
      <description>Hi

To impersonate, you need the admin role assigned to the user you are using. 

If you have the admin role assigned, go to the role definition of the 'admin role and make sure the checkbox 'elevated privilege' is NOT checked.

Then try again,. Log out and in again and try to impersonate. 

Good luck. 

Let me know if that worked and mark my answer as correct and helpful. 

BR 
Dirk</description>
      <pubDate>Thu, 18 Jul 2019 21:49:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353416#M10342</guid>
      <dc:creator>DirkRedeker</dc:creator>
      <dc:date>2019-07-18T21:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353417#M10343</link>
      <description>&lt;P&gt;I updated my original post, and I'm adding the same info here, inline:&lt;/P&gt;
&lt;P&gt;Yes, I am logged in as Admin. I did quite a bit of Impersonating during training, so I know how the process works. Yes, the user(s) I'm trying to impersonate are in the system. The problem I get is that when the Impersonate box pops up, and I enter a name to search for, it returns "No Matches Found." It doesn't matter who I search for. Nothing returns.&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/136184i993F10575A39DF09/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;&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/136196i32D9BB0A492B8025/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;</description>
      <pubDate>Fri, 19 Jul 2019 13:17:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353417#M10343</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-19T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353418#M10344</link>
      <description>&lt;P&gt;Is User Fred Luddy Active in your system??&lt;/P&gt;
&lt;P&gt;You can only impersonate Active Users&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:48:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353418#M10344</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-07-19T14:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353419#M10345</link>
      <description>&lt;P&gt;Yes, he is. This is a new Madrid dev instance I just setup the other day. Haven't done much beyond play with some UI themes so far.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:44:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353419#M10345</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-19T18:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353420#M10346</link>
      <description>&lt;P&gt;Check this out.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hi.service-now.com/kb_view.do?sysparm_article=KB0726447" rel="nofollow"&gt;https://hi.service-now.com/kb_view.do?sysparm_article=KB0726447&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:51:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353420#M10346</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-07-19T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353421#M10347</link>
      <description>&lt;P&gt;Tried it. The resulting query was empty. No orphaned records.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 19:07:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353421#M10347</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-19T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353422#M10348</link>
      <description>&lt;P&gt;Try this and see if this makes any difference.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dev16874.service-now.com/impersonate_dialog.do" rel="nofollow"&gt;https://YourInstanceName.service-now.com/impersonate_dialog.do&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;have you tried other browser, or clear instance and browser cache of current browser.&lt;/P&gt;
&lt;P&gt;for instance cache.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dev16874.service-now.com/impersonate_dialog.do" rel="nofollow"&gt;https://YourInstanceName.service-now.com/cache.do&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 19:14:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353422#M10348</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2019-07-19T19:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353423#M10349</link>
      <description>&lt;P&gt;I tried both of those links (putting in my instance where indicated in the URL) and in both cases I still can't impersonate.&lt;/P&gt;
&lt;P&gt;I have tried Chrome, Edge, IE, and Firefox. It is the same in all of them. Whatever is going on, I don't think it's client side.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:45:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353423#M10349</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-22T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353424#M10350</link>
      <description>&lt;P&gt;I figured it out. &lt;STRONG&gt;All of the users in the demo dataset were "Locked Out" and thus couldn't login or be impersonated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;While I'm happy I got it sorted, I'm really confused as to why they would all be Locked Out in a brand new dev instance that I just spun up. It wasn't anything I changed. It's largely academic now, but if anyone knows why all the users would have been Locked Out, I'd be interested to know. Thanks everyone who tried to help with this! I appreciate it!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:10:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353424#M10350</guid>
      <dc:creator>John Fallara</dc:creator>
      <dc:date>2019-07-22T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353425#M10351</link>
      <description>Hi

Thanks, to let us know about the reasons.

BR 
Dirk</description>
      <pubDate>Tue, 23 Jul 2019 07:04:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353425#M10351</guid>
      <dc:creator>DirkRedeker</dc:creator>
      <dc:date>2019-07-23T07:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353426#M10352</link>
      <description>&lt;P&gt;How do you Unlock users ??&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 18:29:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353426#M10352</guid>
      <dc:creator>Aurin</dc:creator>
      <dc:date>2020-03-28T18:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353427#M10353</link>
      <description>&lt;P&gt;You have to make sure the Active checkbox is set to true and Locked out checkbox to false on the user record.&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/136190i3D9D216D176CB384/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;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Please mark my response as&amp;nbsp;correct answer and helpful&amp;nbsp;if it helped solved your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;-Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Prateek kumar&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 21:24:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353427#M10353</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2020-03-30T21:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353428#M10354</link>
      <description>&lt;P&gt;Thanks for your reply Prateek. That does help but I want to unlock all users in one shot. All users in my dev instance got automatically Locked Out. No idea how or why that happened. I can go into each account and unlock it. But that would take me a few hours. Is there any way to unlock all accounts in one shot ?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 00:15:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353428#M10354</guid>
      <dc:creator>Aurin</dc:creator>
      <dc:date>2020-03-31T00:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Impersonate Users</title>
      <link>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353429#M10355</link>
      <description>&lt;P&gt;Here is the script that will unlock all the users in one go.&lt;/P&gt;
&lt;P&gt;Navigate to System Definition&amp;gt; scripts-background and run below script&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var tab = new GlideRecord('sys_user');
tab.query();
while(tab.next()){
tab.active =true;
tab.locked_out = false;
tab.setWorkflow(false); //helps in prevent running of BR's while updating
tab.autoSysFields(false);
tab.update();
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Please mark my response as&amp;nbsp;correct answer and helpful&amp;nbsp;if it helped solved your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;-Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif;"&gt;Prateek kumar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 00:25:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-t-impersonate-users/m-p/1353429#M10355</guid>
      <dc:creator>Prateek kumar</dc:creator>
      <dc:date>2020-03-31T00:25:01Z</dc:date>
    </item>
  </channel>
</rss>

