<?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>Are there plugins to create user group during run-time?</title><link>https://community.appian.com/discussions/f/plug-ins/8058/are-there-plugins-to-create-user-group-during-run-time</link><description>Are there plugins to create user group during run-time? OriginalPostID-224415 OriginalPostID-224415</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33706?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 09:18:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cab7b0e4-bef1-4afd-ab61-a2f7b461940c</guid><dc:creator>sudhak</dc:creator><description>one more question. which expression function actually returns the group id? I don&amp;#39;t see it in the people function plugin. Has the uuid function, but then used with group() doesn&amp;#39;t work. Any pointers would be of great help. Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33705?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 09:16:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fae65d8-ec1b-4be8-b347-e36c956b573c</guid><dc:creator>sudhak</dc:creator><description>great. thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33700?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 05:11:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:970c150a-85c0-4e63-83f6-b676f6c03291</guid><dc:creator>saravanarajanj</dc:creator><description>Thanks chetany&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33695?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 21:46:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ffd32405-17f2-4551-ac4e-bddb1130458c</guid><dc:creator>chetany</dc:creator><description>@saravanarajanj, the smart service is not useful since here rhe requirement is to create group from the SAIL UI itself. Either the Process writer plugin or a custom expression function which returns a writer can achieve this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33689?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 21:35:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04336afa-b460-43cb-b880-1091043e14d9</guid><dc:creator>saravanarajanj</dc:creator><description>Hi, we have Appian Smartservice for creating Custom Group.Thanks!&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.8/Create_Custom_Group_Smart_Service.html"&gt;forum.appian.com/.../Create_Custom_Group_Smart_Service.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33669?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 16:02:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7afa65bc-ff1b-471d-bf49-e2de1dc98b48</guid><dc:creator>chetany</dc:creator><description>@sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file.  you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup(). &lt;br /&gt;&lt;br /&gt;SAIL example to use the plugin  function created:&lt;br /&gt;load(&lt;br /&gt;  &lt;br /&gt;  local!grpName: fn!bind({}, createcustomgroup(&lt;br /&gt;    name: _,&lt;br /&gt;    description: "New group",&lt;br /&gt;    delegatedCreation: true,&lt;br /&gt;    membershipPolicy: "AUTOMATIC",&lt;br /&gt;    securityType: "PUBLIC",&lt;br /&gt;    groupPrivacy: "LOW"&lt;br /&gt;  )) ,&lt;br /&gt;    &lt;br /&gt;  a!formLayout(&lt;br /&gt;    &lt;br /&gt;    label: "Test group Add",&lt;br /&gt;    firstColumnContents: {&lt;br /&gt;      a!textField(&lt;br /&gt;        label: "Group Name",&lt;br /&gt;        value: local!grpName,&lt;br /&gt;        saveInto: local!grpName&lt;br /&gt;      )&lt;br /&gt;    }&lt;br /&gt;  )&lt;br /&gt;  &lt;br /&gt;)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33655?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 10:31:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a778994a-ee18-411d-92b4-d4e6ff0931e7</guid><dc:creator>sikhivahans</dc:creator><description>@sudhak If your intention is to invoke the smart service in SAIL, for time-being you may replicate it by using the 'Start Process Writer' plugin at http://bit.ly/29UQyvg. So you can create a process model that creates a Custom Group. And this process model can be invoked from SAIL by making use of the plugin mentioned previously. A trade-off with this is, the plugin exhibits fire and forget behavior. So in order to overcome this, you need to interact with another SAIL component and then you can read the id of the created group by querying the database/ analytics.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33654?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 10:24:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85d38409-3214-4e75-aa2d-68545c9832f8</guid><dc:creator>chetany</dc:creator><description>I would suggest that take a look at the source code of &amp;quot;Create custom Group&amp;quot; Smart Service. Re-use the same code and create an expression function. It should be a writer function that you need to create. A writer function is required if your expression function has side-effects. Then you can use the expression function in SAIL in combination with bind()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33648?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 08:40:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d01fff5a-8276-4a0d-9eb4-b95583a8ff04</guid><dc:creator>vineeta6579</dc:creator><description>Its possible to execute smart service in sail, but 7.9 does&amp;#39;t support it. &lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.2/Appian_Release_Notes.html#Execute_Smart_Services_in_SAIL"&gt;forum.appian.com/.../Appian_Release_Notes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33646?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 08:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfefc2e3-1a29-44c3-9d16-4bb42cdf1504</guid><dc:creator>sudhak</dc:creator><description>Yes, I see this. However, it is not available as an expression function. Should I configure something?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33645?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 08:25:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a11cde1-c7d7-4875-8f0c-5438566d1b1a</guid><dc:creator>vineeta6579</dc:creator><description>The Create Custom Group smart service allows you to add new custom groups at runtime from your process applications. It is found under Appian Smart Services &amp;gt; Identity Management in the Process Modeler.&lt;br /&gt;&lt;br /&gt;Ref link:- &lt;a href="https://forum.appian.com/suite/help/16.2/Create_Custom_Group_Smart_Service.html"&gt;forum.appian.com/.../Create_Custom_Group_Smart_Service.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/forum.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/19/forum.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33643?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 08:18:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2805d23f-fb0f-46e3-b3f1-46e10a144ae1</guid><dc:creator>sudhak</dc:creator><description>Im running 7.9 and I don&amp;#39;t see the createGroup smart service selection choices from the expression rule editor. Am I missing anything?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there plugins to create user group during run-time?&lt;p style='display:none'&gt;O</title><link>https://community.appian.com/thread/33637?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 05:06:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10ffc780-1e6a-4dde-8663-a7f2137db439</guid><dc:creator>vineeta6579</dc:creator><description>@sudhak Hi, have you had a chance to look at &amp;#39;Create Custom Group&amp;#39; Smart Service at &lt;a href="https://forum.appian.com/suite/help/16.2/Create_Custom_Group_Smart_Service.html?"&gt;forum.appian.com/.../Create_Custom_Group_Smart_Service.html&lt;/a&gt; Or is it not what you are looking for?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>