Enable edit mode, Add a block > Teams
Beforehand, make sure the group mode is configured in the Course settings. Course administration > Settings > Group mode
The learner can create their team and invite a teammate to join their team, or join a team that has already been created by another learner. As noted in the “team” block, once you have created a team, you become its leader. In the context of a Workshop, if a learner becomes the team leader, this implies that they will have to take part in the team's work and submit the team's work on the platform. Unlike teammates, who only take part in the requested work. However, if because of absence or other reasons the leader learner cannot submit the work, an option lets them transfer the “leadership” to another person.
The block was designed for simple operations, without leaving the course space (or as little as possible).