I was told that an unlawful detainer complaint could name “Does 1-10” which would take care of unknown occupants. (I’d imagine this wouldn’t work if there were more than 10 unknown occupants sleeping in the living room, which would’ve been the case for one of my erstwhile neighbors.)