<?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: Automatic user creation from inbound emails in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905938#M13322</link>
    <description>&lt;P&gt;Hi Edgar&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We have just built an internal tool that does what you are looking for . There is no automated, or easily configurable option for customisation of created users yet, to my knowledge. But this can be done in the following way:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 1) Email properties. DISABLE "Automatically create users for incoming emails from trusted domains"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 2) Modify the appropriate "Create Task" Inbound Action. And create the users manually with a little script magic.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//See if the users already exists for the inbound mail&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var userRecord = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;userRecord.addQuery('email', email.origemail);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;userRecord.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(userRecord.next()){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.caller_id = userRecord.sys_id;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.opened_by = userRecord.sys_id;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;else{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;// If no users exists, create a new user&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var new_user_record = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.initialize();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.email = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.first_name = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.user_name = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var user_created = new_user_record.insert();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(user_created != ''){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.caller_id = user_created;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.opened_by = user_created;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Aug 2017 14:24:15 GMT</pubDate>
    <dc:creator>nic8</dc:creator>
    <dc:date>2017-08-31T14:24:15Z</dc:date>
    <item>
      <title>Automatic user creation from inbound emails</title>
      <link>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905935#M13319</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to customize how &lt;SPAN style="color: #333333; font-family: monospace; font-size: 14px;"&gt;glide.pop3readerjob.create_caller&lt;/SPAN&gt; automatically creates users in Service Now.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from Edgar Evangelista&amp;lt;&lt;/SPAN&gt;&lt;A title="k-email-small" class="jive-link-email-small" href="mailto:edgar.evangelista@xyz.com"&gt;edgar.evangelista@xyz.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Service now should pick up:&lt;/P&gt;&lt;P&gt;Edgar = First Name&lt;/P&gt;&lt;P&gt;Evangelista = Last Name&lt;/P&gt;&lt;P&gt;Username = edgar.evangelista&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 02:06:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905935#M13319</guid>
      <dc:creator>edgar_evangelis</dc:creator>
      <dc:date>2014-03-28T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic user creation from inbound emails</title>
      <link>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905936#M13320</link>
      <description>&lt;P&gt;::raises hand:: &amp;nbsp; &amp;nbsp; ... &amp;nbsp; &amp;nbsp; I too would like to know how to customize this.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jul 2015 12:13:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905936#M13320</guid>
      <dc:creator>xiaix</dc:creator>
      <dc:date>2015-07-14T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic user creation from inbound emails</title>
      <link>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905937#M13321</link>
      <description>&lt;P&gt;You would think there would be some way to customize this by now, granted there are inbound actions available but those still don't quite touch the user records like I would like to see.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2017 18:38:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905937#M13321</guid>
      <dc:creator>thenckel</dc:creator>
      <dc:date>2017-05-19T18:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic user creation from inbound emails</title>
      <link>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905938#M13322</link>
      <description>&lt;P&gt;Hi Edgar&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We have just built an internal tool that does what you are looking for . There is no automated, or easily configurable option for customisation of created users yet, to my knowledge. But this can be done in the following way:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 1) Email properties. DISABLE "Automatically create users for incoming emails from trusted domains"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 2) Modify the appropriate "Create Task" Inbound Action. And create the users manually with a little script magic.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//See if the users already exists for the inbound mail&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var userRecord = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;userRecord.addQuery('email', email.origemail);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;userRecord.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(userRecord.next()){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.caller_id = userRecord.sys_id;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.opened_by = userRecord.sys_id;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;else{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;// If no users exists, create a new user&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var new_user_record = new GlideRecord('sys_user');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.initialize();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.email = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.first_name = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;new_user_record.user_name = email.origemail;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var user_created = new_user_record.insert();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(user_created != ''){&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.caller_id = user_created;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.opened_by = user_created;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:24:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/automatic-user-creation-from-inbound-emails/m-p/905938#M13322</guid>
      <dc:creator>nic8</dc:creator>
      <dc:date>2017-08-31T14:24:15Z</dc:date>
    </item>
  </channel>
</rss>

