%META:TOPICINFO{author="ProjectContributor" date="1727167921" format="1.1"  version="1"}%
%META:TOPICPARENT{name="WebHome"}%
---+ Wiki groups dashboard
Showing all known groups that can be used to define [[%SYSTEMWEB%.AccessControl][access controls]] in <nop>%WIKITOOLNAME%.

<!--
If a large number of groups are configured, the rendering performance of this
page can be significantly improved by enabling the following Set statement.
(Remove the #)

   * #Set maint=off

With this enabled, adding and removing members and also topic upgrades for each group are omitted from this page. Maintenance can be done from the individual group topics.
-->

%TWISTY{
  link="<img src='%ICONURLPATH{"persons"}%' /> %MAKETEXT{"Create a new group"}%"
  mode="div"
  %IF{"$expand='1'" then='start="show"'}%
}%

<sticky>
<form action="%SCRIPTURLPATH{"manage"}%/%WEB%/%TOPIC%" method="post">
<input type="hidden" name="action" value="addUserToGroup"/>
<input type="hidden" name="create" value="1"/>
<div class="foswikiFormSteps">
  <div class="foswikiFormStep ">
    <h3>%MAKETEXT{"Group name"}%</h3>
    <input type="text" name="groupname" size="30" class="foswikiInputField" value="%URLPARAM{"groupname"}%" /> 
    <div class="foswikiFormDescription">
      *Note:* 
      A group name must be a [[%SYSTEMWEB%.WikiWord][WikiWord]] and *must* end in =...Group=. 
      New topics are based on [[GroupTemplate]]
    </div>
  </div>
  <div class="foswikiFormStep">
    <h3>%MAKETEXT{"Members"}%</h3>
    <input type="text" name="username" value="%URLPARAM{"username"}%" size="60" class="foswikiInputField" />
    <div class="foswikiFormDescription">Comma separated list. You will be added to the group automatically to allow you to continue to manage the new group.</div>
  </div>
  <div class="foswikiFormStep">
    <input class="foswikiSubmit" type="submit" value="%MAKETEXT{"Create group"}%"/>
  </div>
  <div class="foswikiFormStep foswikiLast">
    <div class="foswikiFormDescription foswikiHelp">
*IMPORTANT NOTE:* Think twice before restricting write access to a web or a topic, because an open system where everybody can contribute is the essence of [[%SYSTEMWEB%.WikiCulture][WikiCulture]]. Experience shows that unrestricted write access works very well because:
   * There is enough peer pressure to post only appropriate content.
   * Content does not get lost because topics are under revision control.
   * A topic revision can be undone by a member of the [[%USERSWEB%.AdminGroup][AdminGroup]] if necesssary.

*Related topics:* [[%SYSTEMWEB%.AccessControl][AccessControl]], [[%WEBPREFSTOPIC%]], [[%WIKIUSERSTOPIC%]], [[%SYSTEMWEB%.WikiCulture][WikiCulture]]

<div class="foswikiHelp">%X% If a large number of groups are configured, the rendering performance of this page can be significantly improved by disabling group maintenance from this page.  Edit this topic for more information.</div>
    </div>
  </div>
</div>
</form></sticky> %ENDTWISTY%

%GROUPINFO{
   header="<table class='foswikiTable wikiGroupsTable'>
             <tr>
               <th>%MAKETEXT{"Group"}%</th>
               <th>%MAKETEXT{"Members"}%</th>
               <th>%MAKETEXT{"Actions"}%</th>
             </tr>$n" 
   format="<tr>
     <td> $percntIF{\"not istopic '%USERSWEB%.$name'\" then=\"<nop>$name\" else=\"[[%USERSWEB%.$name][$name]]\"}$percnt</td>
     <td> 
       $percntINCLUDE{\"%USERSWEB%.GroupViewTemplate\"
         section=\"rendergroup\"
         groupname=\"$name\"
         allowschange=\"$allowschange\"
       }$percnt 
     </td>
     <td class=\"wikiGroupsActions\">
        $percntINCLUDE{\"%USERSWEB%.GroupViewTemplate\"
         section=\"groupactions\"
         groupname=\"$name\"
         allowschange=\"$allowschange\"
       }$percnt
     </td>
   </tr>"
   footer="</table>"
   separator="$n"
}%

%META:PREFERENCE{name="ALLOWTOPICCHANGE" title="ALLOWTOPICCHANGE" type="Set" value="AdminUser"}%
%META:PREFERENCE{name="PERMSET_CHANGE" title="PERMSET_CHANGE" type="Local" value="nobody"}%
