[horde] removeUserData API
Jan Schneider
jan at horde.org
Thu Sep 18 08:14:09 UTC 2008
Zitat von Michael Rubinsky <mrubinsk at horde.org>:
> Quoting Andrew Morgan <morgan at orst.edu>:
>
>> Is there any documentation or quick guidelines for using the
>> removeUserData API in Horde, IMP, Kronolith, Turba, Nag, and Mnemo?
>> Ideally, I'd like to create a script that I can pass a list of
>> users to remove.
>>
>> Currently, I have a script which removes users directly from the
>> various MySQL tables. I'll be upgrading to the latest RC releases
>> of Horde projects soon, which will require rewriting the script
>> anyways. If I could use the removeUserData API then I wouldn't
>> need to update my script everytime Horde changes.
>
>
> You must be logged in as an administrator, then you just call the
> various app/removeUserData() methods through $registry->call()
> passing the username you want data removed for.
And since this is possible from the user management page too, you can
probably copy and paste some code from there.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the horde
mailing list