Notify and reset password in Okta for suspicious login

Identity ManagementProductivitySales Enablement

What it does

When Okta detects suspicious login activity from outside India, this automation resets the password immediately. It retrieves account details and sends an email notification so someone knows their account was secured.

Who it's for

Security teams who need to respond instantly to suspicious login attempts without manual intervention.

Apps used

How teams use this

Protect accounts from unauthorized access

When Okta flags a login from an unexpected country, the password resets automatically and someone gets notified by email. The account is secured before any damage occurs.

Expand protection to multiple regions

Adjust the country condition to block logins from additional high-risk locations beyond India. The same reset and notification flow applies to each new region you add.

Alert IT teams to account lockouts

Include a notification to IT so they can track password resets and help someone regain access if the reset was triggered by mistake. The Okta reset happens the same way.

Log incidents for compliance review

Set up a second email to a compliance inbox so all suspicious login incidents are recorded for audit purposes. The password reset and user notification remain unchanged.

How it works

  1. Monitor for suspicious login activity. Okta detects a new event indicating suspicious activity in a login from a location outside India and triggers this automation in real time.
  2. Reset password in Okta. Reset the password in Okta so the suspicious session is invalidated and the account is secured from unauthorized access immediately.
  3. Retrieve account details from Okta. Get the user by ID in Okta to gather the email address and other account information needed for the notification email.
  4. Send security alert via Gmail. Send an email via Gmail to alert someone that their password was reset due to suspicious login activity and they should sign in again.