<div dir="ltr"><div><div><div><div><div><div>[since the two words are identical, I will be using an uppercase "Group" to refer to PmWiki Groups of pages, and use a lowercase "group" to refer to AuthUser groups of users]<br>

<br></div>Is there a programmatic way to restrict group access?<br></div>I'm setting up a wiki for others to maintain, who will be creating users and Groups.<br>Each Group should be restricted to one AuthUser group.<br>

</div>Ideally, the AuthUser group would have the same name as the Group.<br></div><div>This would mean that once a Group is created and users are added to the AuthUser group, no further action would have to be taken by the administrator.<br>

</div><div><br></div>However, I haven't figured out how to set Group restrictions without using {Group}.GroupAttributes?action=attr and manually setting the group.<br><br></div><div><br>Would it be possible to do something like the following in local/config.php ?<br>

<br></div><div>// exclude Groups like PmWiki, Main, etc.<br></div><div>if ($Group != 'Site') {<br></div>  $DefaultPasswords['read'] = array('@$Group', 'id:admin'); // restrict to group and admin<br>

<div>}<br></div><br></div>I believe I tried the above and it didn't work (I'm away from my dev machine right now).<br><div><div><div><div><div><div><div><br></div><div>If something like this is possible, could it easily be extended to add additional users or groups via GroupAttributes without modifying config.php?<br>

</div><div><br clear="all"><div><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br><a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br>

<a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br><a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br>

<br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br></div>
</div></div></div></div></div></div></div></div></div>