Purge logs (and all sentinel log files) are available to the “couch2pg database administrator” accounts. The user account you’re using (pm_test_muso) is not an admin user, it has the role national_admin - which is a custom role within your app_settings.json file. It has the word admin in the role, but isn’t a db admin.
There is an actual admin permissions which is controlled via CouchDB’s security features. 1.5. Security — Apache CouchDB® 3.3 Documentation. To make this account an admin, you’ll need to set its role to _admin in the CouchDB user document.
Hope this helps. Let me know if you are still unclear on how to proceed.
roles (array of string): List of user roles. CouchDB doesn’t provide any built-in roles, so you’re free to define your own depending on your needs. However, you cannot set system roles like _admin there. Also, only administrators may assign roles to users - by default all users have no roles
I think it is me who has misunderstood. But I think we are getting closer.
I went to https://upgrade-muso-mali.app.medicmobile.org/_utils/#database/medic-sentinel/_security and I found that any non-admin user with role sentinel can access the sentinel database.
I added this sentinel role to your user document at https://upgrade-muso-mali.app.medicmobile.org/_utils/#database/_users/org.couchdb.user%3Apm_test_muso.
Can you try now if you can access the sentinel logs at https://upgrade-muso-mali.app.medicmobile.org/medic-sentinel/_all_docs?startkey=%22purgelog%22&endkey=%22pw%22?