Unless this new policy in some way constitutes a form of legally actionable discrimination or violates the terms of an employment/union agreement, it is legal. The fact is that a company can set the conditions of work much as it sees fit. This includes the mandate that you have described. Accordingly, while highly unusual and seemingly intrusive, it is not illegal. For your part you can refuse to provide such information but can be terminated for not doing so. You can also choose to quit.