

You can key the shared door to accept both unit keys, while each unit key will only be able to open their own unit and the shared door, but not the other unit.
I did this when I rented in a multi family home that had a shared outer door but individual unit front doors, so I could use my own apartment key to also open the outer shared door and the shared exterior basement door.

Nice, I would still be tempted to register the inner door code to open the outer door too. I hate redundancy and love the idea of everyone having 1 credential that opens everything they are allowed to access. At my current place we use codes but we don’t have access to register them unfortunately so I have to put up with memorizing multiple things, on top of having the front office accidentally reset our accounts one day causing us to need to toss all our old codes and memorize a whole new set because they don’t know how to re-register the old codes that they wiped.