[opencms-dev] delete user with cmsObj.deleteUser("username") problem

"Manuel Wallnöfer" mfw at gmx.at
Mon Jul 28 12:21:55 CEST 2008


Hi all !

I have written a short method to delete certain Opencms users.

If i open a .jsp file inside OpenCms ( logged in as Admin) where this method is called, everything works fine.

But i wnt to execute this method with a cron job.

So i wrote a Scheduled job an there i call the same Method. And now it doesnt work.

First i thought it could be a permission problem, so that the CmsObject i am working with has no Admin role.

But i call the method "cmsObj.isAdmin()" and it returns "true".

So i am Admin , because i'm  starting the scheduled job as Admin.

The exception which is thrown when the method "cmsObj.deleteUser("username");" is the following:

Error in delete user:  org.opencms.file.CmsVfsException: Fehler beim Löschen des Benutzers "1".


Has anybody an idea how i can solve this problem ??

Thx for help !

~ manuel

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser



More information about the opencms-dev mailing list