Walaikumussalam
Shaving the beard is haram based on obligatory precaution, and this includes the hair that grows on the sides of the face. However, there is no problem in shaving the hair that grows on the cheeks.you are allowed to trim the beard.
Wassalam
Syed Abul Qasim Rizvi