<?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>Task Assignment</title><link>https://community.appian.com/discussions/f/process/11419/task-assignment</link><description>Hi Team, 
 We have requirement where we are exposing an Appian Process as a webapi. This Process has one user input task which are required to be attended by certain set of stakeholders. The stakeholder information comes from the API as a payload. These</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Task Assignment</title><link>https://community.appian.com/thread/50246?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 09:37:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53efde1a-7fbd-4c6b-93c0-1a7c3e1da549</guid><dc:creator>arjunm922</dc:creator><description>Thanks Vinay! This helped!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Task Assignment</title><link>https://community.appian.com/thread/50243?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 08:45:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c973eb67-9469-4488-a421-e836cf67d0f7</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Create an expression rule which as one parameter (TEXT),&lt;/p&gt;
&lt;p&gt;pass all the UsergroupName on the rule,&lt;/p&gt;
&lt;p&gt;use Split function&lt;/p&gt;
&lt;p&gt;local!AllUserorGroup: &amp;nbsp;split(ri!Input,&amp;quot;,&amp;quot;)&lt;/p&gt;
&lt;p&gt;you get the array on the variable local!AllUserorGroup&lt;/p&gt;
&lt;p&gt;use apply function&lt;/p&gt;
&lt;p&gt;pass all the array one by one&lt;/p&gt;
&lt;p&gt;create another rule called :&amp;nbsp;Get_UserOrGroup(&amp;lt;Text&amp;gt;)&lt;/p&gt;
&lt;p&gt;apply(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;rule!Get_UserOrGroup,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;local!AllUserorGroup&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;Expression for the rule&amp;nbsp;Get_UserOrGroup is mention below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*Rule Get_UserOrGroup 
   Input: UserOrGroup, Type- Text
*/

=with(
    
      if(
          IsUsernameTaken(
            ri!UserOrGroup
          ),
          touser(ri!UserOrGroup),
         
           getgroupbyname(
             ri!UserOrGroup
           ) 
          
        )
   
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>