Team Door

I am trying to create a VRChat game world where one of the gimmicks is that one team can pass through a door that the opposing team cant go through. After searching the web for a tutorial or something i came up empty and all the suggestions from chat gpt weren’t functional. Is there any known way to set this up? Is it even possible?