How to create a dynamic group
by
scorcm43
—
last modified
Jul 27, 2010 11:05 AM
Login as a manager
Through the ZMI open up your Plone site's acl_users object
Add a "Dynamic Groups Plugin"
- Set Id to "dynamic_groups"
- Set Title to "Dynamic Groups Provider"
Click on your newly created "dynamic_groups" object
Click on "Add a group"
- Set Group Id and Title to the desired group name
- Set Predicate to a TAL expression that determines which users should be in your group. For example, to create group that only includes members with uwosh.edu email addresses set Predicate to:
python: principal.getProperty('email').endswith('@uwosh.edu')
Finally, open up the "Activate" tab of your "dynamic_groups" object, check the boxes next to both "Group_Enumeration" and "Groups", and click "Update".
And you're done!! Your new group should show up in the Users and Groups configlet. And any members who qualify for the group should be members of it.











