Keeping a Beard

I’ve recently had people asking me regarding the ruling of shaving the beard. According to my understanding, all four schools of thought had a consensus that shaving is haram; however, I have read recently that the relied-upon position for the Shāfiʿī madhhab is that it is makrooh (not sinful) to shave the beard. Is this correct?