Make two user groups first (workspace menu › User groups), then in Workspace settings › Security › Information barriers choose them and press Add barrier. Every part starts on: Direct messages, Private channels, Adding people, Mentions, Directory and search. Turn off any you don’t need. Directory and search also keeps each side out of the other’s search results.
People in both groups are kept apart from everyone in either group. Changing who is in a group, by hand or from your identity provider, applies at once. A group in a barrier can’t be deleted until the barrier is removed. Only owners change barriers; admins can see them.
Still stuck? A person replies.Contact support