0

Few classes of my managed package are not available to use in Subscriber org.(Visualforce page which are using these classes are not working).
When "Author Apex" permission is granted on profile in Subscriber org, then those apex class and vf page are working.
This is happening in few subscriber only.
I couldn't find any thing for this strange issue as author Apex permission is required for create/edit apex class or if class is used by any API.
Please help me if any clue?
User don't want to give "Author Apex" permission to use a class.

2
  • What are these Apex classes doing? Is it anything that might require the "Author Apex" permission? I can't find anything outside ApexClass, ConnectionParams, and maybe the Apex Metadata API with such a requirement. Commented May 11, 2018 at 8:25
  • Hello Daniel, There is nothing in these class which ask "Author Apex" permission. The page is used to show some custom object's record on vf page. There are also similar page and class which are working properly.
    – Om Prakash
    Commented May 11, 2018 at 9:42

1 Answer 1

1

There are two permissions necessary for a managed package. First, if not using a Site license, the user must be given a license to use your package. Second, the user must have permission to use the page or class, either via their Profile or a Permission Set. It's recommended that ISVs include Permission Sets so that subscribers can easily add all the required permissions to multiple users with ease.

So, for those users that you're experiencing trouble with, make sure they have the package enabled for their user account, and check their Profile to make sure they have access to the components they are trying to access, or make sure they have a Permission Set assigned to them that contains the relevant permissions.

3
  • Thanks for response. The user has licence assigned and he is also able to use the app. This issue occurred only for few apex classes( say 3 or 4 out of 100 class) . If we give apex author permission then user are able to use these class. One more thing: These classes are also not available during assign Apex classes on profile. After "Author Apex" permission on profile, these classes are available for assign on profile or remove assignment from profile.
    – Om Prakash
    Commented May 11, 2018 at 7:58
  • @OmPrakash That seems odd. You might want to file a case with support if you have Developer Support.
    – sfdcfox
    Commented May 11, 2018 at 14:48
  • 1
    I have raised a case and awaiting updated response. I will update here if anything.
    – Om Prakash
    Commented May 12, 2018 at 18:13

You must log in to answer this question.

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