Objective
This article shows you how to attach a registered action to your login or signup flow in Identity Management, set what happens if it times out, and control the order your actions run in.
Product
Identity Management
Environment
Twilio Console
Procedure
- In the Twilio Console, select Identity & security in the left sidebar.
- Select Identity Management, then Actions.
- Select the tab for the flow you want to change: Login for Post-Login Actions, or Signup for Post-Signup Actions.
- Select Add login action or Add signup action.
- In the Add action window:
- Choose the Action from the list of actions in your library. Its webhook URL fills in automatically. If the action you need does not exist yet, select + Create a new action at the bottom of the list to register it here.
- Set Timeout behavior to ALLOW or DENY — what happens if the action does not respond in time.
- Set Timeout (ms).
- Select Add.
- A confirmation appears and the action is listed in the table with its Order, name and URL, and Timeout Behavior.
To change an action's timeout settings, open the actions menu at the end of its row and select Edit.
To change the order actions run in, select Reorder actions, rearrange them in the Edit action order panel, and select Save.
To take an action out of the flow, open the actions menu and select Remove, then confirm.
Additional Information
The timeout must be between 5,000 and 20,000 milliseconds. New actions default to 10,000 milliseconds and DENY.
Post-login actions run before a token is issued after login. Use them to inject custom claims, apply IP or geo-based restrictions or deny the request, enrich the user profile, and more.
Post-signup actions run in order immediately after a user's record is created. Use them to send welcome emails or alerts, provision external resources, and more.
When you edit an action already in a flow, its name and webhook URL are read-only, those are managed in the action library. Removing an action from a flow does not delete it from the library.
If a flow has no actions, the table shows No actions yet.
This content was generated by AI and reviewed, edited, and verified by a human.