AD - Password Expiration Notification
For every enabled user whose password expires within N days (default 7) the script will send email to them.
Documents related to managing user access rights and security group memberships
View all tagsFor every enabled user whose password expires within N days (default 7) the script will send email to them.
This knowledge article shows the AD users information about the user password expiry and the email sent to them or not.
This condition is built to create ticket if the AD user password expiration email sent failed.
This task is scheduled to run on the Windows Server Domain Controller (specifically to DC with Infrastructure role) to perform the AD user expiration alerting.
This solution provides the AD Password Expiration notification method to email to the users using Microsoft Graph and also adds an option to run it as ReportOnly without emailing.
This custom field is set to determine the Notification window in days.
This custom field is set to register the email method for users whose passwords are about to expire within a specified number of days.
Provide sAMAccountNames separated by commas or newlines to be excluded from the password expiration notification. * wildcard allowed, e.g., svc_*
Optional. Helpdesk/PSA mailbox(es) for users without an email address, separated by semicolons (;).
This custom field is required to set the ClientId for the Ninja organization in O365 so the Graph integration can send emails to AD users.
This is used in the Graph only. Secure fields are readable by automations only, up to 500 characters.
This custom field is required to be set with the O365 tenant ID when the Graph option is set in the custom field 'cpvalAdPasswordExpiryEmailMethod'.
Users who couldn't be notified + failed emails + script errors. 0 = healthy.
This custom field is required to be set to enable the AD Password Expiry Notification alerting.
Optional extra reminders, e.g. 3,1. Blank means one email per cycle.
This custom field stores the last-run summary, expiring user list, including their status in the html data (tabular format).
Required. Sending mailbox. SMTP also accepts IT Support email.
This custom field is required to pass the SMTP password for the SMTP emailing method.
This custom field is required to be set only when the custom field 'cpvalAdPasswordExpiryEmailMethod' is set to the SMTP option. STARTTLS. Port 465 (implicit TLS) is not supported.
This custom field is required to provide the SMTP server details only when the custom field 'cpvalAdPasswordExpiryEmailMethod' is set to the SMTP option.
This custom field is required to provide the SMTP server details only when the custom field 'cpvalAdPasswordExpiryEmailMethod' is set to the SMTP option.
Automatically remove a user from all security groups across Active Directory and Entra ID. Support offboarding and access revocation by ensuring complete security group membership cleanup.