Take the 2-minute tour ×
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 '13 at 20:54
add comment

2 Answers

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 '13 at 11:57
add comment

I am also curious about this.

Here [https://developer.salesforce.com/forums/ForumsMain?id=906F000000090hZIAQ] people say that it requires Author Apex permission.

I'm gonna to try it myself also.

share|improve this answer
add comment

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.