function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
raSFUserraSFUser 

run post install script as user

I have a managed package that creates a scheduler as part of the post install script, my issue is that the schedluer created runs as the managed package name in the user filed not as the user who installed the package.....

can you run the post install script as the user who did the install?

ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

I don't think we can run the post install script as current user or under any specific user.However,you can bypass all the permission using the installhandler as mentioned below:

https://salesforce.stackexchange.com/questions/32607/installhandler-runs-under-a-special-ghost-user-what-rights-does-it-have

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri