Automation library · Alerts and monitoring

AD password expiry - notify users by mail

Started by a clock, and works across Email. 27 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

27 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 16Service 9

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Execute workflow’Manual triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Get domain default maxPwdAgeLdapService
  4. 4set base DNSetLogic
  5. 5ConvertMaxPwdAgeSetLogic
  6. 6Set PasswordNotificationLimit in daysSetLogic
  7. 7Get pdf instruction on how to change user passwordMicrosoft Share PointService
  8. 8Read/Write Files from DiskRead Write FileService
  9. 9Set PSO GroupsSetLogic
  10. 10Split OutSplit OutLogic
  11. 11Get GroupsLdapService
  12. 12Get password policy for each groupLdapService
  13. 13ConvertMaxPwdAge1SetLogic
  14. 14Get PSO group membersLdapService
  15. 15Edit FieldsSetLogic
  16. 16MergeMergeLogic
  17. 17Call 'Convert from msDate'Execute WorkflowLogic
  18. 18Pwd Expiration DateDate TimeLogic
  19. 19Merge1MergeLogic
  20. 20Days to Pwd ExpirationDate TimeLogic
  21. 21FilterFilterLogic
  22. 22IfIfLogic
  23. 23Read/Write Files from Disk1Read Write FileService
  24. 24AggregateAggregateLogic
  25. 25Send emailEmail SendService
  26. 26Code in JavaScriptCodeLogic
  27. 27Notify adminEmail SendService

How it's built

Starts on
A clock
Steps
27, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Email
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Email account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.