Hello, how can I restrict access to a client to certain groups?

On a Gitlab instance I have users who belong to groups and I would like to restrict access to this instance to certain groups. What are the steps to follow?

Thanks in advance.