0

I am experiencing an issue when trying to use a feature in a managed package. From the debug logs it seems the package is querying the PackageLicense object. My read of the debug logs is that the user does not have sufficient permission over the records in that object/read over the object.

Full Salesforce Users with the 'Manage Package Licenses' permissions do not encounter this error. Which seems to support my hypothesis.

18:16:10.593 (597698572)|SOQL_EXECUTE_BEGIN|[108]|Aggregations:0|SELECT Id, CreatedDate, Status, NamespacePrefix FROM PackageLicense WHERE NamespacePrefix IN ('xxxx', 'xxxx') WITH SECURITY_ENFORCED
18:16:10.593 (601088126)|ENTERING_MANAGED_PKG|xxxx
18:16:10.593 (601178450)|ENTERING_MANAGED_PKG|xxxx
18:16:10.593 (601337912)|VARIABLE_ASSIGNMENT| 
18:16:10.593 (601337912)|VARIABLE_ASSIGNMENT| [EXTERNAL]|this|"common.apex.runtime.impl.ExecutionException"|0x6a3dd36
18:16:10.593 (601357378)|VARIABLE_ASSIGNMENT|[EXTERNAL]|message|"Insufficient permiss (46 more) ..."

My question is then: Is there a way to give platform users read access over the PackageLicense object?

0

Your Answer

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

Browse other questions tagged or ask your own question.