# dt.security.context for serverless components

**URL:** <https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486>\
**Category:** Open Q&A\
**Tags:** grail, data-privacy-and-product-security\
**Created:** [December 24, 2025, 10:00am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486 "2025-12-24T10:00:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [December 24, 2025, 10:00am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/1 "2025-12-24T10:00:55Z")

</div>

Hi community

I’m trying to figure out what is the best way to set a dt.security.context on spans send by a server less feature like an Azure App Service. Are there any best practices around this?

Although they have the Dynatrace OneAgent capabilities in them, we simply can’t add it on host level.  
Hopefully I won’t need to use the open pipeline for this.

KR.  
Michiel

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 24, 2025, 11:35am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/2 "2025-12-24T11:35:30Z")

</div>

Hi,

Since Dynatrace is already working in [New Cloud Platform Monitoring for Azure](https://docs.dynatrace.com/docs/shortlink/preview-program#new-cloud-platform-monitoring-for-azure). I guess you can configure "dt.security.context " during configuration.

Best regards

---

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [December 24, 2025, 1:42pm UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/3 "2025-12-24T13:42:22Z")

</div>

Thanks, i did not see this one yet 🙂  
Any thoughts on how to control it now? I’m a bit confused by “the best practise” to set access rights in Grail. When to start with buckets, when to use security context etcetera.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 26, 2025, 12:43pm UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/4 "2025-12-26T12:43:06Z")

</div>

Hi,

You can see “dt.security.context” as a “tag” to be attached of any piece of information ingested in Grail, metric, trace, log… And you can apply policies/rules on top of that, for filtering purposes.

And buckets is more for data retention. These specific log lines, these metrics… will have X data retention time.

Best regards

---

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [December 30, 2025, 10:53am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/5 "2025-12-30T10:53:13Z")

</div>

Thanks for this answer. Last question: any suggestions how to proceed at this moment for metrics / traces coming out of Clouds?  
We need to solve a use case where a particular party can solely see metrics, logs and traces for themselves.

Best regards,  
Michiel

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 31, 2025, 11:03am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/6 "2025-12-31T11:03:24Z")

</div>

Hi,

Do you have some use case? As team A only can see X.

Since you are talking about Grail data, I would say working with policies and boundaries.

Best regards

---

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [January 15, 2026, 1:13pm UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/7 "2026-01-15T13:13:44Z")

</div>

Hi Anton,

Sorry for the late response, we have vendor A which is only allowed to see stuff within their management. This would also apply to traces and &nbsp;etcetera.  
We would like to know how to best split the entities, metrics and stuff for cloud components. Most of the metrics do not have a security context or whatsoever for server less features 🙂

Kind regards,  
Michiel

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 20, 2026, 9:21am UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/8 "2026-01-20T09:21:45Z")

</div>

Hi,

Maybe [this recent video](https://www.youtube.com/watch?v=ChgiqA63hiE) about Dynatrace IAM might be helpful.

Best regards

---

<div class="post-metadata">

**Author:** ![jgrant](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jgrant](https://community.dynatrace.com/u/jgrant)\
**Post date:** [November 19, 2026, 9:02pm UTC](https://community.dynatrace.com/t/dt-security-context-for-serverless-components/54486/9 "2026-11-19T21:02:39Z")

</div>

For record level permissions and any IAM policy boundary, the correct field key is `dt.security_context`, not `dt.security.context`. Suspecting that Google’s indexing of this page coupled with heavy AI usage is leading users to believe they can use these keys interchangeably, but only `dt.security_context` of these 2 fields are supported for record level permissions.

> **[Permission fields](https://docs.dynatrace.com/docs/semantic-dictionary/tags/permission)**
>
> Lists fields usable in IAM policies that control read permissions for data stored in Grail, such as logs, metrics, spans, events, and bizevents.
