<?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>How to get username/email/name from User object?</title><link>https://community.appian.com/discussions/f/general/20208/how-to-get-username-email-name-from-user-object</link><description>Hi Team, 
 I am getting list of user or groups from a ER like below 
 
 Now I want to convert this User object to username/name or email. 
 Or easy language I want to fetch user details from this object 
 Please help me 
 
 I tried user() but it gives</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/79700?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 14:47:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27ed81d0-ffec-458f-8698-118a22dfea9b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The &amp;quot;user()&amp;quot; function provides the ability to get first OR last OR middle name within a single instance.&amp;nbsp; Because the definition of &amp;quot;full name&amp;quot; and formatting thereof varies pretty widely and will largely depend on your use case, it will be up to you to get the one(s) you want and concatenate them together properly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to save yourself some typing in the future, create an Expression Rule i.e. &amp;quot;PROJ_Utility_GetUserFullName&amp;quot;, which will call &lt;em&gt;user()&lt;/em&gt; the necessary number of times and concatenate its results.&amp;nbsp; The added benefit of this is you can null-check the input username, and even check first to make sure it represents an actual account, to avoid errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/79694?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 12:40:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57a4ceff-dc73-4c63-818d-507d628cb019</guid><dc:creator>vaithyanathanr0002</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to get&amp;nbsp;full name of the user in the similar way. Or is it possible to get First name and Last Name and concatenated with space?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/78889?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:23:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecaf4487-7ad5-42e4-8bda-b7e080995ae7</guid><dc:creator>arshbirs0001</dc:creator><description>&lt;p&gt;Thanks &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/78888?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:18:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a6fb809c-c0ac-4390-83e0-533e6fcaa2ba</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;assuming the &amp;quot;list of user or group&amp;quot; will usually only be 1 user long, and not a sub-list...&amp;nbsp; simply use a!forEach to loop over the entire list, and cast the internal result as a simple string before passing into the user() function, like this:&lt;/p&gt;
&lt;p&gt;a!forEach(local!data.c10,&amp;nbsp; user(tostring(fv!item), &amp;quot;firstName&amp;quot;))&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/78887?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:14:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0bf6597-45aa-434b-b996-a7a2606aefe9</guid><dc:creator>arshbirs0001</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1610464435972v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the list which is stored in c10 variable of process report&lt;/p&gt;
&lt;p&gt;I run&lt;/p&gt;
&lt;p&gt;user(local!data.c10[1][1],&amp;quot;firstName&amp;quot;)&lt;/p&gt;
&lt;p&gt;and I got&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1610464494151v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;if I run&lt;/p&gt;
&lt;p&gt;local!data.c10[1][1]&lt;/p&gt;
&lt;p&gt;I get&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1610464538721v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get username/email/name from User object?</title><link>https://community.appian.com/thread/78886?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:10:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24ddabad-f207-45bc-b949-e8d7159e1d0b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;user()&lt;/strong&gt;&lt;/em&gt; is the function you want.&amp;nbsp; Can you post exactly the code you tried, and the exact error message you received?&amp;nbsp; Otherwise it&amp;#39;s hard to provide help that isn&amp;#39;t just blind guessing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>