If a user has Bypass policies when pushing enabled, how can I also configure it so that the same user is unable to commit directly to Main branch?
Bypass policies when pushing
Main
You may enable this permission on the repo level:
and disable on the branch level: