If you are using Homebridge, the info at Homekit/iPhone Multi-user Presence Detection Using Homebridge May help.
I started testing this method for presence detection and so far it’s very reliable. The example shows a single presence detection variable but it can be adapted for individual presence detection.