All universities have rules about what students are allowed and not allowed to do when it comes to group work, assignments, exams etc.
You should familiarise yourself with these.
In addition to rules telling what you must and must not do, there may also find guidelines that help you make decisions in the many grey zone cases where there are no rules, of the rules are unclear.
Such guidelines are often referred to as codes of conduct.