# ‘View Logs’ role seems to be bypassing conditional access for Grail storage. Is this true?

**URL:** <https://community.dynatrace.com/t/view-logs-role-seems-to-be-bypassing-conditional-access-for-grail-storage-is-this-true/49937>\
**Category:** Open Q&A\
**Tags:** access-management\
**Created:** [January 27, 2025, 1:10pm UTC](https://community.dynatrace.com/t/view-logs-role-seems-to-be-bypassing-conditional-access-for-grail-storage-is-this-true/49937 "2025-01-27T13:10:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [January 27, 2025, 1:10pm UTC](https://community.dynatrace.com/t/view-logs-role-seems-to-be-bypassing-conditional-access-for-grail-storage-is-this-true/49937/1 "2025-01-27T13:10:40Z")

</div>

Will&nbsp;users or the group be able to read logs from all buckets?

---

<div class="post-metadata">

**Author:** ![Jon2](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@Jon2](https://community.dynatrace.com/u/Jon2)\
**Post date:** [January 27, 2025, 1:11pm UTC](https://community.dynatrace.com/t/view-logs-role-seems-to-be-bypassing-conditional-access-for-grail-storage-is-this-true/49937/2 "2025-01-27T13:11:48Z")

</div>

“[View Logs](https://docs.dynatrace.com/docs/shortlink/role-based-permissions-for-environment-access#environment)” is a permission of type ‘role’, and as such, it does not adhere to attribute-based conditions. Consider, for example, that one of your user groups has been assigned:

- ‘View Logs’ role

- [‘storage:logs:read’](https://docs.dynatrace.com/docs/shortlink/iam-policystatements#storage-logs-read) through a default policy like ‘Read Logs’ or through a custom policy like this:

//Grail read data

ALLOW storage:buckets:read WHERE storage:table-name = “logs”;

ALLOW storage:logs:read;

and a policy boundary applied with the following condition:

storage:bucket-name = ‘default\_logs’;

The ‘View Logs’ role assignment will bypass the attribute conditions set in the policy and boundary, when those two are applied to the group. This means users of the group will be able to read logs from all buckets.

To fix this, you can remove the role assignment and instead express it in an existing or new policy assigned to the same group, like this:

//Classic

ALLOW environment:roles:logviewer;

Do not forget to apply the policy boundary to the new policy you modified.
