I am developing a Managed Extension Package for HealthCloud. My app is inserting those native HC objects:
- Board Certification
- Business License
- Healthcare Facility
- Healthcare Provider
- Health Provider NPI
Before we do the DML we check for permission using
Security.stripInaccessible(AccessType.CREATABLE) and also using
My problem now is that everything works fine until I package this. User with this Perm Set cannot call this code without access error.
I have packaged a Permission Set that grants user write access to those objects but I learned from this Known Issue and thisrelated question packaging such a perm doesn't work. But even when I create a Permission Set outside of the package, I am unable to get this working.
I am also quite sure that the user has all the right HC permissions and licences.
It works perfectly in an Unmanaged context.