<?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>Issue with userOrGroup type</title><link>https://community.appian.com/discussions/f/rules/34285/issue-with-userorgroup-type</link><description>Hi everyone, just wondering why the string is not being typecasted to both user and group and being checked which one is valid since the type is userOrGroup?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with userOrGroup type</title><link>https://community.appian.com/thread/130940?ContentTypeID=1</link><pubDate>Sun, 10 Mar 2024 06:37:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75bdffb5-375b-4149-989e-d637289fec46</guid><dc:creator>Dhananjay Kumar</dc:creator><description>&lt;p&gt;To test please pick user or group in rule input. don&amp;#39;t type like string. As you can clerly see it says no group found.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1710052598547v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with userOrGroup type</title><link>https://community.appian.com/thread/130850?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 14:17:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a57494c-baf4-46ba-9fde-4d24d6d22aad</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Try this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; if(isusernametaken(&amp;quot;xxxxx&amp;quot;), &lt;br /&gt; touser(&amp;quot;xxxxxx&amp;quot;), &lt;br /&gt; togroup(404))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with userOrGroup type</title><link>https://community.appian.com/thread/130847?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 13:24:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28d6a9de-8198-43e2-839f-84337cf7d30d</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The group has a number. You can extract that number using tointeger() function and then use it to cast it to the group. But like Kondru said, lets get clear with the requirement first.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with userOrGroup type</title><link>https://community.appian.com/thread/130835?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 12:43:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:611a614d-1820-4bc8-87d6-0e92b800e72b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian does not know what to do with your input string and casts it into a user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with userOrGroup type</title><link>https://community.appian.com/thread/130826?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 11:27:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d844cd18-51d7-41ce-ad29-ba2f20e51e39</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/deepakr7707"&gt;deepakrana77&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is your requirement? you are expecting either a group id or an user name as an input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>