<div dir="ltr">Hi all !
<br>
<br>I have written a short method to delete certain Opencms users.
<br>
<br>If i open a .jsp file inside OpenCms ( logged in as Admin) where this
method is called, everything works fine.
<br>
<br>But i wnt to execute this method with a cron job.
<br>
<br>So i wrote a Scheduled job an there i call the same Method. And now it
doesnt work.
<br>
<br>First i thought it could be a permission problem, so that the CmsObject
i am working with has no Admin role.
<br>
<br>But i call the method "cmsObj.isAdmin()" and it returns "true".
<br>
<br>So i am Admin , because i'm starting the scheduled job as Admin.
<br>
<br>The exception which is thrown when the method
"cmsObj.deleteUser("username");" is the following:
<br>
<br>Error in delete user: org.opencms.file.CmsVfsException: Fehler beim
Löschen des Benutzers "1".
<br>
<br>
<br>Has anybody an idea how i can solve this problem ??
<br>
<br>Thx for help !
<br>
<br>~ manuel
<br>
</div>