We have developed a custom process which retrieves events, notifications, and performance metrics from Graylog via the REST API. We have assigned a read-only user to retrieve the information. It works great, except today it was demonstrated that non-administrative users are unable to retrieve system notifications.
How can we assign permission to retrieve notifications without making the read-only API user an administrator? I don’t see a way to do it in the documentation. Does it involve directly modifying a configuration stored in MongoDB?
I was able to accomplish this by adding “notifications:read” to the “reader” role in MongoDB, so my immediate need is solved. But, my question still stands: is this doable some easier way?
Why not create role only for read notifications and assign it to user with role Reader? Because role permission is cumulative from more roles, it’s not necessary directly edit reader role. Just assign newly created role to specific user.
Create json file role-notification-read.json with content: