<?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>Hi, I am new to Appian. (Appian 7.6) Question about People Functions</title><link>https://community.appian.com/discussions/f/plug-ins/5396/hi-i-am-new-to-appian-appian-7-6-question-about-people-functions</link><description>Hi, I am new to Appian. (Appian 7.6) Question about People Functions plug in. I have an expression rule/function getgroupsformemberuser(ri!username). I believe this will return Group ids of that user (example: test: username: jsmith output: Group:[xxx</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20316?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 20:31:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8f4be92-dad6-455e-9b84-7069f02100f1</guid><dc:creator>batirbekm</dc:creator><description>Bah! It is working. I had space after semicolon! Thank you mschmitt! :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20315?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 20:22:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ebf40bcd-1efe-4a02-b0ef-1a9928b63df7</guid><dc:creator>Mike Schmitt</dc:creator><description>When I test the same code in expression editor (using 2 valid usernames separated by a semicolon and no space), i get both users&amp;#39; groups appended to one long list of groups.  I&amp;#39;m not sure why it wouldn&amp;#39;t be working in your case but you might try checking to make sure nothing&amp;#39;s been overlooked.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20314?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 20:17:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6094462-1dc0-403a-8e61-99076345c398</guid><dc:creator>batirbekm</dc:creator><description>Yes, here is a sample code: &lt;br /&gt;parameters: username, type text, multiple.&lt;br /&gt;apply(fn!getgroupsformemberuser, ri!username)&lt;br /&gt;Test: jsmith; asmith. Output: only returns jsmith&amp;#39;s group ids.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20309?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 19:08:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:366dd5c7-34a9-4466-b7b8-e133d311efca</guid><dc:creator>Mike Schmitt</dc:creator><description>(above is an example of what happens when you don&amp;#39;t refresh a forum post before typing out an answer, LOL...)&lt;br /&gt;&lt;br /&gt;to confirm, I just tried this functionality using a text array (containing usernames) instead of a user array, and it appears to still work.  Is it still not working for you?  If not, maybe you can post some example code here?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20308?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 19:03:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:822b5a4c-7b0d-432a-9989-fc7b083310b0</guid><dc:creator>Mike Schmitt</dc:creator><description>If you have a variable containing multiple users (ri!users for example) - off the top of my head, you can do this easily using apply() functionality, such as:&lt;br /&gt;apply(fn!getgroupsformemberuser, ri!users)&lt;br /&gt;&lt;br /&gt;As a basic explanation, the apply() function takes another function and calls it once for every member of an array you feed it; the output is another array containing the results.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20301?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 18:23:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c310bb7-980b-4fe3-b12e-388030c18016</guid><dc:creator>batirbekm</dc:creator><description>Rule input defined to be multiple - yes! No, I am not doing anything else. I see, I am using Type: Text not User. My output from my previous node is type text. I need to convert text to user object and then use this function. &lt;br /&gt;Thank you again for your help, joshl!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20300?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 18:09:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85f32bc1-996d-499f-b2bc-466b7cbb75cd</guid><dc:creator>Josh</dc:creator><description>This works for me: &amp;quot;apply(getgroupsformemberuser(_), ri!users)&amp;quot; Is your rule input defined to be multiple? Are you doing anything else in your expression rule?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20299?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 18:03:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28ca01f2-e719-41bd-b896-525cd8040a2d</guid><dc:creator>batirbekm</dc:creator><description>Thanks joshl!!! I tried to use apply function and it returns first user&amp;#39;s group id. test: asmith; bsmith; output: only returns asmith&amp;#39;s group ids. Any other ideas?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: &lt;br /&gt;Hi, I am new to Appian. (Appian 7.6)&lt;br /&gt;Question about People Functions</title><link>https://community.appian.com/thread/20296?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 17:49:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d87090a-f827-4b5a-a6b2-1a07b59b9930</guid><dc:creator>Josh</dc:creator><description>you can make use of the apply function inside your rule. ex. fn!apply(fn!getgroupsformemberuser(_), ri!listOfUserNames_user)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>