Nav Link Proxy Permissions

I have an apartment building in my project. I have 1 apartment for 1 AI.
But there are many buildings and many AI’s. How do I allow to enter the building only AI’s that live there?
I tried teleporting them in apartments if they have the right integer, but it requires a lot of hardcoded vectors.
Is there a way that only AI’s that live in the specific building are allowed to use nav link proxy?