<?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>Group membership rule to exclude certain users</title><link>https://community.appian.com/discussions/f/general/33825/group-membership-rule-to-exclude-certain-users</link><description>Hey Techies, 
 
 I have a Group &amp;#39;User Group 1&amp;#39; with membership to include all the members of &amp;#39;Subgroup 1&amp;#39;. 
 For testing purposes, I want to exclude selective members of &amp;#39;Subgroup 1&amp;#39; from &amp;#39;User Group 1&amp;#39; while maintaining the subgroup membership rule.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Group membership rule to exclude certain users</title><link>https://community.appian.com/thread/128375?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 12:39:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40060a7b-13a3-4e70-ba49-f3f297021dc2</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;In my experience, group rule memberships can be hard to troubleshoot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group membership rule to exclude certain users</title><link>https://community.appian.com/thread/128354?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 07:39:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b23711fd-0d77-4260-acd8-01f753fd1094</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The mathematical set functions might be an option. Did you try difference()?&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/23.4/fnc_set_difference.html"&gt;https://docs.appian.com/suite/help/23.4/fnc_set_difference.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group membership rule to exclude certain users</title><link>https://community.appian.com/thread/128346?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 07:03:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c77a3b1-5333-40cf-ab9c-f10a5f529e12</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;I don&amp;#39;t see a way to configure the membership rule to include all the members of a group unless you add that group as a member.&amp;nbsp;&lt;br /&gt;So I don&amp;#39;t think you will be able to do that via membership rules. You can try using this &amp;quot;Does not equal&amp;quot; operator and see if this works for you.&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1706511798961v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group membership rule to exclude certain users</title><link>https://community.appian.com/thread/128332?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 05:06:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f08982a-485b-4bd4-bb33-0cae5388407b</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;This can obviously be refactored to be more efficient, robust but it would look like something along these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!groupMembers: a!groupMembers(group: ri!group, memberType: &amp;quot;USER&amp;quot;).data,
  remove(
    local!groupMembers,
    wherecontains(
      cast(
        typeof(loggedInUser()),
        local!groupMembers
      ),
      ri!membersToExclude
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>