<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Get User Object from username</title><link>https://community.appian.com/discussions/f/rules/11816/get-user-object-from-username</link><description>Hi 
 
 I am trying to use the Deactivate User Smart Service in a process model that is going to be triggerd by the system (not a user per se) and it requieres the user object of the user that is going to be deactivated. 
 
 I have the username text, but</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52179?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:38:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae21522d-141f-43b3-a8b9-a0feb977eaf8</guid><dc:creator>rogeliog</dc:creator><description>Thank you guys  :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52178?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe0ac2e8-080a-4d5a-9ef9-09f349a82060</guid><dc:creator>Colton Beck</dc:creator><description>It shouldn&amp;#39;t break if an invalid username is passed.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52177?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:27:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bdb9c67-c5db-4ce9-8baa-94a5ddda7fbb</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>i didn&amp;#39;t understand the technical difference between actual and dummy , It works as long as you have a user created in the admin console&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52176?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:23:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ec06e98-4b4c-4044-9260-6e68c2c42488</guid><dc:creator>rogeliog</dc:creator><description>Does the touser() function works only with valid  actual usernames in appian or  a dummy username value will stil work?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52175?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:17:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eabd22c3-92ec-41ad-b3ac-b93dbceb460c</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;You can use the &lt;a href="https://docs.appian.com/suite/help/17.4/fnc_conversion_touser.html"&gt;touser()&lt;/a&gt; function to accomplish this by passing in the username text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get User Object from username</title><link>https://community.appian.com/thread/52174?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 17:16:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d26a3ac-dc4c-4aa1-a94e-573da1e80863</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>touser() function converts a text  to USER . &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
touser(value)&lt;br /&gt;
Converts a text value or values to User. touser(&amp;quot;john.smith&amp;quot;) returns a User with username &amp;quot;john.smith&amp;quot;.  touser(&amp;quot;john.smith&amp;quot;, &amp;quot;jane.jones&amp;quot;) returns an array with two Users with usernames &amp;quot;john.smith&amp;quot; and &amp;quot;jane.jones&amp;quot;, respectively.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>