1 admin has deleted a lot of users directly, without using adminP. Does anyone know how to update a group, so the deleted users is also removed from groups?
Subject: Agent
The only solution is to write a ls agent that will read every group and then lookup each value in the members field and check the $users and $groups view to see if a documen exists and if not remove from list, set a flag and if flag is set save doc before processing the next doc.
Subject: Agent
Do you know of anyone who has written such an agent? I don’t know how to do that… ![]()
Subject: Found some code
here is a link to some code.
http://www.wissel.net/blog/d6plinks/KAFT-5Z35G9
I would before saving each doc do this
if doc.RemovedMembers(0) <> “” then
call doc.save(true,false)
end if
This would cut back on the number of replications.
You need to create a view as per the doc.
Please make a copy of the nab first and test test test the script.