Custom apps distribution using redemption codes

How do distribute custom apps to users using redemption code? Do users need to part of managed device in order for them to download the app? or any users can download the app as long as they have the redemption code?

Thank you!

Custom apps distribution using redemption codes
 
 
Q