Tell me more ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

What permissions does user need to call System.abortJob() in Apex?

When the method is called this error is displayed:

System.SecurityException: Insufficient Privileges.

Thanks.

share|improve this question
Standard System Admin Profile should do it. – techtrekker Feb 27 at 20:54

1 Answer

UPDATE: I just confirmed with testing that the "Modify All Data" system permission is what is required to use the System.abortJob() method. Unfortunately, there isn't any specific permission to allow this by itself.

share|improve this answer
Thank you. So, if I got it, when the user is not a System Administrator is not possible to execute System.abortJob() method and there is no permission to it. Are there difference between a customer org and a development org to it? In the customer org, can another users execute the method through a managed class? – Airton Gessner Feb 28 at 11:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.