XDA famous developer Chainfire took a stab at rooting the Samsung Galaxy S7. His investigation leads to a conclusion that the safest method is fully disabling the /data encryption. Moreover, there are scenarios where a device can be bricked during the process. Learn more from his interesting forum post here.
Chainfire Explains Encryption And Root on the SGS7 Variants on Nougat