Add a user to a specified group when the first join the site
Submitted by: hobu
Last Edited: 2005-11-20
Category: Python(Script)
|
| Average rating is:
0.0 out of 5
|
(0 ratings) |
|
Description:
This recipe describes how to add a user to a group that you want when they first register for
the site.
|
Source (Text):
group = context.portal_groups.getGroupById('MyGroup')
group.addMember(username)
|
Explanation:
Go to portal_skins/plone_login and customize the register Python Script.
Add the code near the bottom of the script (the part where the user has
successfully joined). Make sure to change 'MyGroup' to a name of an actual
group your Plone instance has.
|
Comments:
No Comments
|