It’s typically not wise to assign employees to working groups based on race, sex or any other protected characteristic. But you won’t always be liable for discrimination in such cases. Just make sure you have a valid business-based reason for doing so, and then apply that policy consistently to affected employees …