Unifi access

hello, I bought the unifi access enterprise together with the unifi intercom, I would like that when I enter the code of user 1, door 1 opens and when user 2 enters his code, door 2 opens and when user 3 enters the code that doors 1 and 2 open.
But i have no idee how i can do that.

(i have fount this API documentation: https://core-config-gfoz.uid.alpha.ui.com/configs/unifi-access/api_reference.pdf?fbclid=IwZXh0bgNhZW0CMTEAAR3BJTZpM8VEDiOxNO_2dRB4B-QhDRoXxnIh-d0hMQfgf9Iro6zLqvBslyw_aem_IO4688Gdbckp-fRNbwbG5Q#page98)

Any solution about this topic? I also want to integrate my intercom with 2 way audio and video into a homeassistant dashboard.

Hello, I think you could achieve this with the help of unifi access integration if you can unlock the second door from home assistant. You just need to set an automation that triggers when a specific user unlocks the door 1. Automation would then open the other door.