I have an app on the appexchange, when a subscriber installs the app, it will run an install handler process on his org.

LMA will also create a license for the subscriber on my org.

My question is:

Are this 2 processes sequential? Can I be sure that The license will be already created when the user runs his post-installation process?

Thanks in advance.


While I don't have much of experience around managed package development, but going through the documentation, it looks like you don't need a license for a User to execute the post installation scripts but it always runs as a special system user representing your package. I would think this to be the correct behavior because scripts are utilized to perform post-installation configs specific to your app for that Organization and not specific to any particular User.

Excerpt below from documentation (emphasis mine):

It runs as a special system user that represents your package, so all operations performed by the script appear to be done by your package. You can access this user by using UserInfo. You will only see this user at runtime, not while running tests.

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.