function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jonathan Payne 12Jonathan Payne 12 

Batch apex job user change


We have an Apex Class "AYSFReportBatch" which should be scheduled under the user "AYSFIntegration" but the user has been changed which inadequate permissions which means the batch apex job is being abandoned. 
We are not sure how the user was changed, or why but would like to change it back to the original "AYSFReportBatch"  Apex Class. How might this be achievable?
Many thanks!


 
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
Hi Jonathan Payne 12,

I would do it in two steps:
1) Delete current schedule process: Setup -> Scheduled Jobs -> Search your scheduled job and delete it
2) Create scheduled job again: Log in as the user who will execute the process -> Setup -> Apex Classes -> Click on 'Schedule Apex' -> set previous values.

Let me know if it is ok for you.

Thanks 
Regards,
Ignacio
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
is it solved your issue? thanks