You mean you have one iCloud account and you want to allow somebody else to access it?
You could just add their phone number as an alternate method of authentication, then when they login they can select that number as the place to send the code. For example, I have my daughter's cell phone in there in case I lose my phone and cannot get in I could have the code sent to her.