Setting a temporary security code
Use the
setTemporaryPassword
API to set a temporary security code for a user. You can optionally set an expiration date for the security code, or set it for one-time use only. The request requires the user ID and optionally, the temporary security code string. If you do not provide a security code, VIP User Services generates one for you.By default, the security code is returned in the response. Use the
smsDeliveryInfo
, voiceDeliveryInfo
, or emailDeliveryInfo
elements to also send this security code to the user as an SMS text message, voice call, or email message, respectively.You can clear the security code with the
clearTemporaryPassword
API. Additionally, if a user is authenticated using a security code generated by a valid credential, VIP User Services automatically clears the temporary security code. See Clearing temporary security codes.