If you can’t share your key lock to others but want them to have access to it, there’s no better way than using this doorknob which is mounted with a key lockbox where you can hide anything including a key for the doorknob itself, that’s unlocked by matching the code.
Door Knob Mounted Key Lock Box to Hide a Key Outside for Your House

·
·