You are here: Home / Documentation / How To's / How to create a dynamic group

How to create a dynamic group

by scorcm43 — published Aug 06, 2009 04:55 PM, last modified Aug 16, 2016 10:50 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 email addresses set Predicate to:
    python: principal.getProperty('email').endswith('')

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.