1

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? – Ruslan Vekua May 18 '16 at 11:43
  • yes its global.. – Anzar May 18 '16 at 11:45
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 May 18 '16 at 12:09
  • You can enable Modify all data permission on the profile of the user. – Mr.Frodo May 18 '16 at 12:16
  • thanks @Frodo problem is solved I wasn't passing the sessionid while redirecting to page... – Anzar May 18 '16 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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