Skip to content

Conversation

@cgbautista
Copy link
Contributor

New tool to list users that will have their password expiring in the following days

following days. Can notify via webhook a resume. Password policy must be
configured in the config.json file or defaults to 18 months + week in
advance.
@cgbautista cgbautista requested a review from idelcano September 24, 2025 12:02
Copy link
Contributor

@idelcano idelcano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice,
Could you update the PR to target master instead? It currently points to a different branch. Thanks!

- `filterGroup`: Optional. Defaults to `None`. An array of userGroup names to be considered as the only ones to evaluate. It allows to restrict the result to those who belong to any of these groups instead of the whole DHIS instance.
- `months_expiry`: Optional. Defaults to `18`. Should reflect the actual password policy of the instance. It does not retrieve the value from the instance as this allows to evaluate instances without an active password expiration policy.
- `how_many_days`: Optional. Defaults to `7`. As this script was conceived to be run periodically notifying which users will have their password expiring in the current week.
- `pnly_enabled`: Optional. Defaults to `true`. When set to `true`, restricts the evaluation to enabled users. When set to false it will evaluate both enabled and disable users.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cgbautista
there’s a small typo in the README (“pnly_enabled”). Could you please correct it? It’s minor (you can create a commit using the github ui)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants