As of now here are some solution you can explore:
- Informatica Secure At Source (S@S) has the capabilities to detect the same PII, PHI. Ranger policies can be create from within S@S to have the access to the different dataset controlled.
- Informatica Enterprise Data Catalog offers a set of API that can be consume to extract discoverd PII, PHI etc. and automated the creation of policies in Ranger or tags in Atlas.
The first one still require human action, while the second one could be automated.
for your second question, I think my second option describe how this can be achieved leveraging the API.
please let me know if you need more information.