Do spaces belong to the user or to the apartment?
To the apartment. Each apartment has a shared limit on active resident permits, and the users linked to the address manage them on the apartment's behalf. That is also why permits do not follow a resident who moves out.