Skip to main content

How to use Twilio CLI with Netwrix Password Reset SMS Verification

Overview​

The Twilio CLI allows to manage phone numbers, call Twilio APIs, and test webhooks.

Instructions​

  1. Download Twilio from the official website (recommended to use Windows): Install the Twilio CLI ⸱ Twilio 🐍
    https://www.twilio.comhttps://www.twilio.comhttps://docs.netwrix.com

  2. Being logged in with the Netwrix Password Reset (NPR) Service Account, open CMD and log into Twilio accaunt.

  3. In the Account info section, fill in the following fields:

    1. Account SID
    2. Auth Token

    Group 115 (1).png

  4. In Netwrix Password Reset SMS Verification Settings, setup Command and Parameter

    IMPORTANT: every time a setting is changed for Parameter in the Netwrix Password Reset Settings for Verification, the Service Account needs to be restarted. Failure to do so may result in the changes not taking effect or the SMS not being sent on Unlock/Resets.

    1. Command: C:\Windows\System32\cmd.exe
    2. Parameter: /C ""C:\Program Files\Netwrix Password Reset\TwilioMSGSMS.cmd" [PHONE] [CODE]""

    TIP: the default AD Attribute is set to MOBILE PHONE. You can change it by clicking on the AD Attribute link in the SMS settings.