<?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>Show members of group using grid</title><link>https://community.appian.com/discussions/f/user-interface/34570/show-members-of-group-using-grid</link><description>How to list all the members of a group and store them to a local variable to show them in a grid also select multiple members to delete and add the members, using groupmember function?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/134633?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 19:16:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08371d3e-5ef0-41e8-84b7-116279ae3122</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;thanks - also I just got your PM, but it won&amp;#39;t allow me to reply (and it said so only after I&amp;#39;d typed one out).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/134632?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 19:08:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:460f9892-bbb8-47c6-a850-d255e40f216b</guid><dc:creator>Gus Lines</dc:creator><description>&lt;p&gt;Hey Mike, thanks for pointing this out. We will investigate this matter and address it appropriately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132688?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 15:24:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5cdfe44-8763-4696-9c75-53d301e02f3e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you have followup questions, you should stick to your original post (i note some of your replies here seem to have been &amp;quot;spammed&amp;quot; - &lt;a href="/members/april.schuppel"&gt;April Schuppel&lt;/a&gt; can anyone look into that?).&amp;nbsp; But there&amp;#39;s no need for 3 separate posts on it - at the very least, it makes it confusing for us to keep up-to-date with how far you&amp;#39;ve gotten, and aside from that, makes the front page needlessly cluttery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132595?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 14:33:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3729b34-7b86-4dd0-9e31-964482eae5a4</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="274702" url="~/discussions/f/user-interface/34570/show-members-of-group-using-grid/132594"]And you cannot make multiple calls to a!addMembersToGroup() inside a safeInto.[/quote]
&lt;p&gt;To be fair though, it accepts multiple members, so unless one was trying to do the action for multiple people &lt;em&gt;and multiple groups&lt;/em&gt; at the same time, there should be no issue.&lt;/p&gt;
[quote userid="274702" url="~/discussions/f/user-interface/34570/show-members-of-group-using-grid/132594"]there is no a!filter() function [/quote]
&lt;p&gt;Yeah i&amp;#39;m also having a hard time translating that one into something that would work on an interface.&amp;nbsp; For a second I thought he might mean to filter on a!groupMembers(), but it doesn&amp;#39;t take any filtering parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132594?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 14:22:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6305622f-985d-4929-b1d5-bdf1ed8b2516</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm ... there is no a!filter() function in Appian. And you cannot make multiple calls to a!addMembersToGroup() inside a safeInto.&lt;/p&gt;
&lt;p&gt;As this might be confusing to Appian juniors, do you mind refining your answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132589?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:42:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d5b3d8b-3c11-4055-a248-414b8ce3d054</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;To add new members, I&amp;#39;d go with a person picker below the grid where you can select an individual user then a special button nearby which, upon clicking, adds them to the group.&amp;nbsp; I would not attempt to do this &amp;quot;in the grid&amp;quot;.&lt;/p&gt;
&lt;p&gt;To remove individuals, I&amp;#39;d suggest creating a column with a rich text icon and a dynamic link calling the function &lt;em&gt;&lt;strong&gt;a!removeGroupMembers()&lt;/strong&gt;&lt;/em&gt; on the username referenced in that row.&amp;nbsp; You could potentially also enable selection of multiple rows and removing all selected members via a button click, however I&amp;#39;d only go with this approach if the row-by-row solution is *completely* unacceptable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132587?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:29:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f32f845a-8b6e-4457-9f2c-ac5de16bd360</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Use a!groupMembers(groupId) to store members in a local variable.&lt;br /&gt;Display members and enable selection using a grid with checkboxes.&lt;br /&gt;Use a!filter(members, selected) to get selected members for deletion.&lt;br /&gt;Loop through selected members and use a!removeGroupMembers(groupId, memberId) to delete each.&lt;br /&gt;Use a user picker and a!addMembersToGroup(groupId, userId) to add new members in a loop.&lt;br /&gt;Remember, security clearances are required for modifying groups, and error handling is recommended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132586?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:25:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ffcca354-0004-42ec-a65c-4658947abc29</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Can you explain in details how can I use&amp;nbsp;&lt;span&gt;groupMembers(), removeGroupMembers()&amp;nbsp;and&amp;nbsp;&lt;b&gt;addMembersToGroup&lt;/b&gt;() using grid&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132585?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:17:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec643a41-78be-40cb-8aa7-b367c35d06b4</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;So, by delete and add the members means is, after listing all the members in grid, I wants to add/remove multiple members from within the grid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132584?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:11:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:312ed5df-c060-488e-86a7-624e0ded349d</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;Use groupMembers() to retrieve members. Display members in a grid.Add checkboxes for selection. Use removeGroupMembers() to delete selected members. Use&lt;/span&gt;&lt;b&gt; addMembersToGroup&lt;/b&gt;&lt;span&gt;() to add new members.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show members of group using grid</title><link>https://community.appian.com/thread/132583?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:09:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:857041c8-68bd-4b6f-82f9-a84c274d86bf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can get a list of all members of a group with the function &lt;strong&gt;&lt;em&gt;a!groupMembers()&lt;/em&gt;&lt;/strong&gt;.&amp;nbsp; Then you can use this array to serve as the data basis for a grid.&amp;nbsp; I&amp;#39;m unclear what you mean by &amp;quot;delete and add the members&amp;quot;, but you should be able to do various functions all on-form using controls in the grid (like rich text column values with dynamic links perhaps).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>