DHIS2v -2.40. Tomcat version 9.x. I am a new user of DHIS. We are undergoing a VAPT test. They have reported that api/metadata call returns username which is a high risk. What we have tried: -
- Filter: But filter won’t work as they are directly calling api/metadata which spits all of the usernames along with all the information
- Removed “View User” from “Selected system authorities” via user role assigned to the user - this didn’t work
- There were different options given by “Ask AI” the AI bot of DHIS, it didn’t work
Sample api/metadata response(relevant part of the response) which contains username: -
“programs”: [
{
“name”: “Test”,
“created”: “2023-06-05T09:26:36.996”,
“lastUpdated”: “2023-08-19T05:51:03.584”,
“translations”: ,
“createdBy”: {
“id”: “xyz”,
“code”: null,
“name”: “Test xyz”,
“displayName”: “xyz”,
“username”: “xyz@ijk.com”
},
“lastUpdatedBy”: {
“id”: “xPF7H2KXq9p”,
“code”: null,
“name”: “Test User”,
“displayName”: “Test abc”,
“username”: “admin”
}
“user”: {
“id”: “xyz”,
“code”: null,
“name”: “Test User”,
“displayName”: “Test User”,
“username”: “xyz@abc.com”
}
}
]
How to remove username form the response of the api/metadata is the question? Can we grant/remove any specific access to a user so that username information is not displayed
Looking out for support on this one, thanks.