Skip to content

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

Open
netroms wants to merge 1 commit into
2.43from
DHIS2-20097_2.43
Open

feat: admin-only /api/users/twoFactor audit endpoints [DHIS2-20097]#24247
netroms wants to merge 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

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