[Yale] Programming a Yale lock
*IMPORTANT* To program codes to your Yale lock, you must know your Master Code. A User Code can be used to unlock the lock, but will not allow you to program the lock. Note: If you forget your Master Code you will need to perform a factory reset on the lock.
This video describes how to program a Yale lock.
The below images are from the Yale website. 
