This Error is coming. I am wondering what could be the possible issue. I have given permission to the objects.

Web service callout failed: WebService returned a SOAP Fault: INSUFFICIENT_ACCESS: use of the Metadata API requires a user with the ModifyAllData permission faultcode=sf:INSUFFICIENT_ACCESS faultactor=

  • Is your apex class Global? Commented May 18, 2016 at 11:43
  • yes its global..
    – Anzar
    Commented May 18, 2016 at 11:45

1 Answer 1


It looks like you are performing operation with Metadata API.That requires Modify all data permission.

You should check the profile of the user that it has Modify all data permission or not.

enter image description here

  • what do you exactly mean by Modify all data permission? I didn't get it..
    – Anzar
    Commented May 18, 2016 at 12:09
  • You can enable Modify all data permission on the profile of the user.
    – Mr.Frodo
    Commented May 18, 2016 at 12:16
  • thanks @Frodo problem is solved I wasn't passing the sessionid while redirecting to page...
    – Anzar
    Commented May 18, 2016 at 12:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .