I am calling a managed package method from a user trigger. When I create a new record it is working as expected but when I update a record it is throwing Insufficient Privileges error. Please suggest some solution.

  • 2
    Does the User's Profile have Edit permission on the object that you are trying to update? – Jayant Das Oct 18 at 13:51
  • 1
    To follow on what Jayant said, the managed code is almost certainly performing explicit FLS and CRUD enforcement. – David Reed Oct 18 at 13:55
  • Yes it has permission on the object. If I try to assign Profile P1 or P2 it is working fine but it I try to change Profile of a user from P1 to P2 or P2 to P1 it is throwing this error. – Ishan Oct 18 at 14:03

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.