Groups (or private rooms) are closed rooms, and users can join only if added to the private room. With the Groups API, you can:
Create and manage the status of private channels—archive, unarchive, encrypt, set announcements, and more.
Add and remove members in private channels.
Update members’ roles in private channels.
View information such as members, integrations, messages, and files.
For more details, refer to the Collaborate Using Rooms user guide.