How to Set Up Account Security (2FA, IP Whitelist, and Session Duration)
The Security combining two-factor authentication (2FA) settings and recovery codes, customer PII masking, STOP coverage, IP Allowlist, Session Lifetime, Temporary access limit, as well as Outbound-Only mode.
Before you start
Section titled “Before you start”- Each user can enable Two-Factor Authentication for their own account.
- To change account-level settings (Mask customer personal data, IP Allowlist, Session Lifetime, Temporary access limit, and Outbound-Only Mode), you need the
settings:write(Admin or Owner) permission.

-
Open the Security page
Open Settings › Security › Security (
/settings/security). -
Enable Two-Factor Authentication (2FA) and save your recovery codes
On the card Two-Factor Authentication panel, click Enable 2FA. Scan the QR code using an authenticator app (or copy Manual entry key with the button Copy the), enter the 6-digit code in Verification Code, then click Verify & Enable. On the Save Your Recovery Codes panel, click Copy all or Download .txt, check I have saved these recovery codes in a safe place, then click Complete.
-
Regenerate 2FA recovery codes (if needed)
When 2FA is active, the card displays Recovery codes along with the amount of Remaining {count}. Click Generate new codes, enter the 6-digit Authenticator Code, then click Generate New Codes to issue 8 new one-time codes and deactivate the old ones.
-
Set Up IP Allowlist
On the card IP Allowlist, check the current Your IP address. Click Add IP Rule, enter a CIDR range (for example,
203.0.113.0/24or198.51.100.10/32) and an optional label, then save. Once your IP address status is Covered by rules, turn on the Enable IP Allowlist. -
Configure Portal Login Session Validity Period
On the card Session Lifetime, select Session Duration (15 minutes, 1 hour, 8 hours, 24 hours (default), or 7 days) then click Save.
-
Set Temporary Access Limit
On the Temporary access limit card, fill in Maximum duration (days) to limit the maximum number of days a temporary user account can be granted access (leave empty for No limit), then click Save.
Result
Section titled “Result”- Users who enable 2FA are asked to enter a 6-digit TOTP code (or one of 8 one-time recovery codes) when logging in.
- When Enable IP Allowlist is on, requests are only accepted from registered CIDR ranges.
- New login sessions follow the Session Duration (with silent renewal up to 24 hours after expiration as long as it does not exceed the account session limit).
Security settings card reference
Section titled “Security settings card reference”Card in /settings/security | Settings & Options | Default Value | Notes |
|---|---|---|---|
| Hide customer personal data | PII sensor toggle, mode By permission (default) vs Reveal on click (logged in audit), account/ID number patterns, and up to 10 custom regex | Off | See How to Hide Customer Personal Data (PII Masking). |
| STOP / Opt-Out Scope | STOP replies stop the WhatsApp campaign and STOP also blocks generic (conductor) traffic | Campaign: Aktif, Conductor: Nonaktif | See Opt-Out, Consent, and STOP. |
| Two-Factor Authentication | Enable 2FA, Disable 2FA (password required), Generate new code (8 one-time recovery codes) | Nonaktif | Requiring 2FA for all accounts is enabled through support Mahadata. |
| IP Allowlist | The Enable IP Allowlist + list of CIDR rules | Nonaktif | To enable the toggle, at least one CIDR rule must cover your current IP address so that you are not locked out. |
| Session Duration | 15 minutes, 1 hour, 8 hours, 24 hours (default), 7 days | 24 hours (default) | Applies to the next portal login session. |
| Temporary access limit | Maximum duration (days) | Unlimited (empty) | Limits the maximum duration when the admin sets Access Period on the Users. |
| Outbound-Only Mode | The Enable Outbound-Only Mode | Nonaktif | Hides the inbox menu and mutes notifications/webhook message.inbound for blast/API-only accounts, while automation triggers continue to run. |
If there is an issue
Section titled “If there is an issue”- The Enable IP Whitelist switch cannot be turned on: Make sure you have added at least one CIDR rule that covers your Your IP currently (the indicator shows Covered by rules).
- Unable to log in due to a lost authenticator app: Use one of the 8 Recovery codes you saved, or ask the account admin to reset your 2FA via Settings › Users › Users.