Timothy Grant writes: > I know how to add users programatically, but I am having a difficult thing > finding out how to add roles programatically. I have a list of user defined > roles that I would like to add, but am unsure how to do it within DTML or an > external method. > > Please note that I am *not* trying to assign roles to users here, I am just > trying to add roles to the system. You can do anything programmatically, that you can do manually through the management screen. Just look at the DTML code that generates the respective form. In your case (adding a role), the DTML source is "AccessControl/access.dtml". The analysis of the code shows you, that the method "manage_defined_roles" does what you want. It gets 2 keyword parameters: "role=your_role" and "submit='Add Role'". Dieter _______________________________________________ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )