The subscription is tied to a single Microsoft account. However, benefits can be shared on one designated "Home Xbox" console.
Each account needs its own subscription (or a Game Pass Ultimate Family Plan where available in select regions).
Home Xbox sharing covers most households. Set it up once; everyone on that console plays online free.