As part of another question where I tried to automate the creation of a Connected App for a Managed App and were successful with many steps but failed

  • Assign a packaged permission set to the Connected App
  • Set the Connected App's Oauth to Is Admin Auto-Approved

It worked in a Developer org but not in a production org setting.

I know that I am able to manually clone the Packaged Permission Set and do those 2 steps manually but maybe there is also a way to do this cloning from Apex.

Is it possible (and how) to create a Permission Set copy for a managed package Permission Set? This should also work in subscriber Production Orgs.

  • 2
    I'm guessing triggering an outside API to do this is out of the question? Mar 4 '20 at 17:36
  • Is it something like Metadata or tooling api? Then it’s ok but not my own java service on Heroku. Mar 4 '20 at 17:39
  • Salesforce SFDX CLI will do a lot, and can be augmented with Puppeteer. Host your own Deployment As A Service 😜
    – altius_rup
    Mar 5 '20 at 7:26

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.