In most countries, monitoring work devices is allowed when there's a clear purpose and people are told before it starts. This isn't legal advice.

Hyring Insight helps you do it properly:

Some rules apply almost everywhere: tell people first, collect only what you need, set a retention period, keep a person involved in any decision, and don't track personal time.