How to configure an alert when a user account is locked

How to configure an alert when a user account is locked

In this article:

    • Objective

    • Prerequisites

    • Steps to follow

    • Validation and confirmation

    • Tips

    • Related topics and articles

 

Objective

Learn how to configure an alert that notifies administrators whenever a user account is enabled in Entra ID (formerly Azure Active Directory), ensuring timely awareness of critical identity status changes.

Prerequisites  

    • Access to the ADADAudit Plus web console.

    • A user account with administrator privileges or a technician account with delegated permissions to configure alerts under Cloud Directory.

    • The Entra ID module must be properly configured and licensed in ADAudit Plus.

    • Audit Logs must be actively collected from Entra ID (i.e., ensure the Audit module under Cloud Directory shows a healthy sync status).

    • If you want alert notifications sent via email, ensure that SMTP settings are configured under Admin > General Settings > Server Settings in ADAudit Plus.

Steps to follow

  1. Use an account with either the Administrator role or a Technician account with delegated permissions to create/modify alerts.

  2. Navigate to Alerts from the top menu.

  3. Click New Alert Profile (top-right corner).

  1. Enter a relevant Alert Name and Description (e.g., Member Added to Entra ID Role).

  2. Click the + symbol next to Report Profiles.

  1. Under Domain, select the Cloud Account.

  2. Choose Logon Failure as the report profile.

  3. Scroll down to the Filter section and enable it.

  4. Set the first filter as follows:

    1. Attribute: Failure Error Code 

    2. Operator: equals

    3. Value: 50053

  5. Set the condition as OR.

  6. Set the second filter as follows:

    1. Attribute: Failure Reason

    2. Operator: equals

    3. Value: IdsLocked

  1. This will generate alerts whenever a user account is locked in Entra ID.

  2. In the Alert Actions section, check the E-mail Notification box.

  3. Enter the recipient email addresses.

  4. Provide a clear and relevant subject line for the email notification.

  5. Select the preferred format for the alert email, either HTML or Plain Text.

  6. Use the check boxes to select the details you would like to include in the email:

    1. Alert Message

    2. Alert Profile Name

    3. Event Details

  7. Check the Throttle Notification box to suppress multiple alerts into a single notification based on defined criteria.
    Example: If multiple logon failures are detected from the same user within 15 minutes, consolidate them into one alert.

  8. If SMS provider settings are configured in ADAudit Plus (Admin > General Settings > Server Settings > SMS), check the SMS Notification box for real-time updates.

  9. Check the Execute Script box to trigger a script automatically when a specific alert is generated.
    Example: Lock a user account temporarily after detecting 10 consecutive logon failures from that account.

  10. If a ticketing tool is integrated with ADAudit Plus (Admin > Configuration > Ticketing System Integration), check the Configure Auto Ticketing box to automatically generate tickets for alerts.

Note: You can also use Throttle Ticket Generation to avoid creating a ticket for every alert and instead generate one for a group of alerts meeting certain conditions.

  1. Click Save to activate the alert profile.

Validation and confirmation

  • Manually add a test user to any Entra ID role using the Azure portal.

  • Go to Alerts > Expand Cloud account under Profile based alerts. 

  • Choose the Alert profile that was created and View Alerts in the ADAudit Plus console.

  • Verify that the alert appears with the correct event details (user, role, time).

  • Ensure the alert email is received at the specified address.

Tips

  • Include key details in the alert message:

  • Add dynamic values such as:

    • Username

    • Time of action

    • Who performed the action

    • Client IP or source

  • Create dedicated alert profiles for administrators or critical service accounts to monitor user disablement more closely.

  • Store alert history for audit trails and compliance reporting.

Related topics and articles

  • How to configure an alert to notify when a user is disabled.

                  New to ADSelfService Plus?