# DQL available for viewing and modifying in Dashboards Tiles with viewer role

**URL:** <https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183>\
**Category:** Dashboarding\
**Tags:** dql, dashboards\
**Created:** [June 15, 2026, 6:19pm UTC](https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183 "2026-06-15T18:19:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisbsantos](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@luisbsantos](https://community.dynatrace.com/u/luisbsantos)\
**Post date:** [June 15, 2026, 6:19pm UTC](https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183/1 "2026-06-15T18:19:30Z")

</div>

I am working on some Dashboards that will be shared with other teams. My current solution, after trying to give the least possible available permissions, still lets anyone not only see but also modify and run DQL queries however they want - they just can’t save the dashboard afterwards.

So a user with the least possible permissions (viewer only) can go to a simple dashboard, modify the DQL to something as simple as “fetch events” and have access to all the events within the timeframe. Or any other DQL query.

I tried restricting the accessm through exploring the Users/Groups Policies and also the Boundaries, but the only working solutions I got still let me run DQL queries with my test user.

Does anyone know how can I disable/block this behaviour?

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [June 16, 2026, 1:11am UTC](https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183/2 "2026-06-16T01:11:32Z")

</div>

[@luisbsantos](https://community.dynatrace.com/user/94111)&nbsp;If you are giving access to a dashboard for a user , you may not be able to block that user from running queries based on the way permissions work in Dynatrace at this point of time.&nbsp; When a user tries to access a dashboard the system would need to execute a DQL query in the backend to fetch the data based on the user permissions. So, we may not be able to allow dashboard access while explicitly preventing DQL execution.

If the concern is about unauthorized data access you can try limiting the access to data with policies instead

---

<div class="post-metadata">

**Author:** ![luisbsantos](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@luisbsantos](https://community.dynatrace.com/u/luisbsantos)\
**Post date:** [June 16, 2026, 11:08am UTC](https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183/3 "2026-06-16T11:08:59Z")

</div>

[@p\_devulapalli](https://community.dynatrace.com/user/21657)&nbsp;thank you for your response!

I obviously want the Dashboard to execute DQL - I need to display data with it so the clients can actually observe their systems. What I am very uncomfortable allowing is in any user being able to see and execute DQL queries after the initial DQL queries are displayed.

I’ve been reading the Dynatrace documentation but couldn’t solve the _unauthorized data access_ problem with policies, but I’m still on this (specially around the IAM policy reference - link&nbsp;[here](https://docs.dynatrace.com/docs/manage/identity-access-management/permission-management/manage-user-permissions-policies/advanced/iam-policystatements)) Do you have any suggestion that might be useful?

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [June 16, 2026, 11:34pm UTC](https://community.dynatrace.com/t/dql-available-for-viewing-and-modifying-in-dashboards-tiles-with-viewer-role/56183/4 "2026-06-16T23:34:40Z")

</div>

[@luisbsantos](https://community.dynatrace.com/user/94111)&nbsp;As mentioned you may not be able to restrict a user from looking at the queries or running them, but you would be able to limit what data they would be able to see or run queries against

There are few different ways of achieving this, you can partition the data using buckets and use IAM policies to limit the user access to only those buckets

> **[Use Grail buckets to partition data](https://docs.dynatrace.com/docs/platform/grail/organize-data/partition-data)**
>
> How you can use buckets to partition Grail data.

You can also use security contexts

> **[Grant access to entities with security context](https://docs.dynatrace.com/docs/manage/identity-access-management/use-cases/access-security-context)**
>
> Grant access to entities with security context

These might be helpful references

[![](https://global.discourse-cdn.com/dynatrace/original/3X/c/6/c688a3d328431ccf3730965642363108e77c9faf.jpeg "Dynatrace Office Hours: Configuring Grail and managing data access | February 2024") ](https://www.youtube.com/watch?v=Pwh0hmqqjIk)

[![](https://global.discourse-cdn.com/dynatrace/original/3X/1/9/198fba75f3bb5b916a2b7a4b91ef22434ad12be2.jpeg "Dynatrace Access Control Fundamentals | IAM Policies, Boundaries & Best Practices") ](https://www.youtube.com/watch?v=ChgiqA63hiE)
