Skip to content

[feature] Report user roles auth change#92

Open
nshandra wants to merge 4 commits intodevelopmentfrom
feature/report-user-roles-auth-change
Open

[feature] Report user roles auth change#92
nshandra wants to merge 4 commits intodevelopmentfrom
feature/report-user-roles-auth-change

Conversation

@nshandra
Copy link
Contributor

@nshandra nshandra commented Jan 15, 2026

📌 References

Issue: Authorities modification of any role

📝 Implementation

If some change is detected for a UserRole Authorities a message is generated with three categories:

  • New user roles detected with its authorities
  • Deleted user roles detected with its authorities
  • Updated user roles detected with a list of added and removed authorities

If a authority assigned to a UserRole is deprecated (legacy authority, missing or removed app authority, etc) its name will be set to "DEPRECATED_AUTHORITY".

Example of the message:

New user roles detected:
- NEW USER ROLE (Id: XXXXXXXXXXX) with authorities:
	- Id: M_DHIS2_GLASS_Admin_Maintenance_Report Name: DHIS2 GLASS Admin Maintenance Report app

Deleted user roles detected:
- DELETED USER ROLE (Id: XXXXXXXXXXX) with authorities:
	- Id: M_DHIS2_GLASS_Submission_Report Name: DEPRECATED_AUTHORITY

Updated user roles detected:
- UPDATED USER ROLE (Id: XXXXXXXXXXX)
	- Added authorities:
		- Id: F_APPROVE_DATA_LOWER_LEVELS Name: Approve data at lower levels
		- Id: F_VIEW_UNAPPROVED_DATA Name: View unapproved data
	- Removed authorities:
		- Id: F_DATAVALUE_ADD Name: Add/Update Data Value
		- Id: F_RUN_VALIDATION Name: Run validation

#8694qx6wz

@nshandra nshandra requested review from idelcano and ifoche January 15, 2026 19:53
@nshandra nshandra self-assigned this Jan 15, 2026
@nshandra nshandra changed the title Feature/report user roles auth change [feature] Report user roles auth change Jan 30, 2026
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.

1 participant