Users with custom roles, even with minimum read permissions, are unable to view agent logs in the Session Viewer. The UI fails to display the logs, although the API requests return the expected data.
Preconditions
Serverless environment.
User with custom minimum read permissions:
Elasticsearch Index Privileges: Includes * (Read).
Kibana Privileges: Security (Read).
To Reproduce
Log in to the Serverless environment with the custom role user.
Navigate to Fleet page and select an agent.
Observe that agent logs are not displayed.
Check the network requests to confirm that APIs are returning data.
Expected behavior
Agent logs should be visible to users with appropriate read permissions.
If additional permissions are required, the UI should inform the user accordingly.
Describe the bug
Users with custom roles, even with minimum read permissions, are unable to view agent logs in the Session Viewer. The UI fails to display the logs, although the API requests return the expected data.
Preconditions
*
(Read).To Reproduce
Expected behavior
Version