Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
We can modify the Permission Sets using Apex in our Development org.

But can we change the Permission set by writing code in the Post Install Script after package Installation without cloning Permission sets ?
4 answers
  1. Oct 26, 2015, 7:47 AM
    Thanks @Anup Jadhav for you help.

    We can not modify the Permissions Set if these are the part of package.

    But we can Insert new Permissions Set by Using Post Install Script.

    I have Implemented this and my Permissions Set includes:

    App permission

    Apex Page & Apex Class

    Objects & Field Permissions and may more.

    If someone needs any help on Permissions Set ( of Standard Objects when these are the part of Package and having Master-Detail relationships with our Custom Objects), Please feel free to post your Comments on this post.

    Thanks,

    Kapil Kaushik
  2. May 15, 2018, 5:46 AM

    Can we run scripts on Profiles?

    I have installed a Manage Package for all profiles in the Org, now I want to restrict the package access only to certain profiles ? 

    Instead of doing for each profile manually do you have any automated solution? 

  3. May 4, 2017, 4:27 PM
    @Kapil Kaushik Could you please share your code for adding App permission to Permission set via apex
0/9000