How to use the sheet, the range protection and the conditional format simultaneously in Google Sheets?

Here I gave the conditional format in column E, with two colors for users A and B respectively. Now I want to enable access to A and B for their respective cells in columns F and G. I can do it manually. But I want to do the same for future rows of data, which automatically copy the cell protection rules in columns F and G with respect to the user in column E. How to do it?

Google sheet sample