Skip to content

feat: admin-only /api/users/twoFactor audit endpoints [DHIS2-20097] - #24247

Merged
netroms merged 1 commit into
2.43from
DHIS2-20097_2.43
Jun 30, 2026
Merged

feat: admin-only /api/users/twoFactor audit endpoints [DHIS2-20097]#24247
netroms merged 1 commit into
2.43from
DHIS2-20097_2.43

Conversation

@netroms

@netroms netroms commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #23925 to 2.43.

Adds the superuser-only 2FA enrolment audit endpoints:

  • GET /api/users/twoFactor/summary — totals, byType breakdown, ALL-authority coverage stats.
  • GET /api/users/twoFactor — per-user list, filterable by ?status= and ?type=.

Both gated by @RequiresAuthority(anyOf = ALL).

Backport notes

  • Clean cherry-pick of 9a972d6 — 3 new files, no modifications, no Flyway migration.
  • UserTwoFactorAuditControllerTest passes (9/9) on a clean build of this branch.

JIRA: DHIS2-20097

AI Assisted.

@sonarqubecloud

Copy link
Copy Markdown

@netroms
netroms merged commit 1395504 into 2.43 Jun 30, 2026
16 checks passed
@netroms
netroms deleted the DHIS2-20097_2.43 branch June 30, 2026 16:35
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.

2 participants