San Francisco law is that tenants may sublet / add roommates etc. Landlord has 14 days to object. Objection has to be for a good reason. At least that's how I've always understood it.
Can you cite the rule in San Francisco that landlords are under no obligation to allow subletting?
https://sfrb.org/topic-no-151-subletting-and-replacement-roo....