[Zope-dev] Adding user.

Adrian van den Dries avdd@flow.com.au
Fri, 23 May 2003 21:29:01 +1000


On May 23, Ignacio Dosil Lago wrote:
>   Any ideas on how to remove that user??

Try this python script in the folder that contains the user (probably
the Root Folder):

users = container.acl_users
for user in users.getUserNames():
    if user.count("STRING-IN-YOUR-USERNAME"):
        print "users.userFolderDelUsers([%s])" % user
        #users.userFolderDelUsers([user])
return printed

Call it, verify that it will delete the correct user, uncomment the
delete call, and call again!

HTH,

a.

-- 
 Adrian van den Dries                           avdd@flow.com.au
 Development team                               www.dev.flow.com.au
 FLOW Communications Pty. Ltd.                  www.flow.com.au