In our data model, we have several objects that are details of account (master-detail) relationship. I want a profile to have access to the records of Object A and B if they are the owner of the master account but only see the records of Object A but not B, if they are not the owner of the master account. There is only one master account that the profile will not have access to so doing it manually may be an option.
I was hoping to do this with sharing rules but noticed detail objects don't have a sharing rule.