This depends on the region you are located. There is a smartapp call smart lock guest access that can be installed that allows a user to control users and lock codes. The very basic tasks.
https://support.smartthings.com/hc/en-us/articles/200958090-Smart-Lock-Guest-Access
There is also a smartapp from @rboy that works in all regions and offer many options for users.