Overview
Really Simple Account Security Notifications (RSASN) emails one or more addresses when a significant security event happens on a user account with a chosen role.
Recipients can be any email address, not just site users. This suits shared monitoring inboxes: you can use plus-addressing (e.g. [email protected]) to filter alerts and forward them to pagers or chat tools.
Features
- A permissions-style grid: events down the side, roles across the top. Tick the event/role pairs that should send an alert.
- Role changes are detected when the account is saved, so alerts fire however the role was granted: admin UI, Drush, bulk operations, or code such as SSO provisioning.
- Editable subject and body templates with placeholders, including the affected account, the roles that triggered the alert, the IP address, and the account that carried out the action.
- Throttling per account and event, so a brute-force attack doesn't flood your inbox. The next alert reports how many were held back.
- Every email has an unsubscribe link protected by an HMAC. Administrators can re-subscribe an address.
- Emails are sent at the end of the request, so mail delivery never slows down login.
- A master switch that can be overridden in
settings.php, so staging and local copies of the site stay quiet. - Sends, suppressed alerts, unsubscribes and settings changes are all logged.
Supported events
- Login
- One-time login link used (password reset,
drush uli) - Failed login attempt
- Account locked out by flood control
- Password reset requested
- Password changed
- Email address or username changed
- Role added
- Role removed
- User created or activated
- User blocked or cancelled
- User deleted
- Role permissions changed
How roles are matched
For role added and role removed, the alert is based on the role being changed. Adding administrator to a normal user triggers an alert under the administrator column.
For blocking, cancelling and deleting a user, the user's roles before the change are used. All other events use the account's current roles.
Requirements
Drupal 10.3 or later, or Drupal 11. No dependencies outside core.
Installation and configuration
- Install as you would any contrib module:
composer require drupal/really_simple_account_security_notifications. - Grant the Administer account security notifications permission to trusted roles only.
- Go to Configuration > People > Account security notifications (
/admin/config/people/account-security-notifications), add one or more recipient addresses, and review the event/role grid.
On install, every event is ticked for the administrator role (if your site has one), and the email address of user 1 (the site's first account) is added as a recipient. Review both on the settings page.
To silence a non-production copy of the site, add this to its settings.php:
$settings['really_simple_account_security_notifications_disabled'] = TRUE;
Country and location
Notifications include the visitor's IP address. The module has no GeoIP lookup of its own: the country and approximate location come from any module which implements hook_really_simple_account_security_notifications_location_alter(). See really_simple_account_security_notifications.api.php.
Similar projects
Login Security focuses on login restrictions rather than notifications. RSASN is a lightweight way to send alerts about account and permission changes to external inboxes.
Ask your assistant about Really Simple Account Security Notifications (RSASN)
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta1 | Pre-release | 10–11 | Nov 30, 2026 |