# Create security context

**URL:** <https://community.dynatrace.com/t/create-security-context/54021>\
**Category:** Open Q&A\
**Tags:** user-management\
**Created:** [November 7, 2025, 12:02pm UTC](https://community.dynatrace.com/t/create-security-context/54021 "2025-11-07T12:02:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [November 7, 2025, 12:02pm UTC](https://community.dynatrace.com/t/create-security-context/54021/1 "2025-11-07T12:02:23Z")

</div>

Hi,

I have a question related to security context.

We created several MZs. And we would like to create security context to provide access to the same objects that were defined in the MZs.

So, to define that security context is it enough to establish as security context the same name that the MZ?

Ex.:

_ALLOW storage:logs:read WHERE **storage:dt.security\_context = “mySC”** _

I’ve reviewed several times this [documentation](https://docs.dynatrace.com/docs/shortlink/access-security-context) but it carries on not clear for me.

Thanks in advance.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [November 7, 2025, 9:28pm UTC](https://community.dynatrace.com/t/create-security-context/54021/2 "2025-11-07T21:28:04Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;yes, by default, Grail uses the management zones to set the dt.security\_context on most entities. But for logs or bizevents you can do this using OpenPipeline or security context menu for logs.

 ![DanielS_0-1762550867834.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/0/7027f849c9f6da12ff7da88ce98c57c249d610ce.png)

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [November 11, 2025, 6:11am UTC](https://community.dynatrace.com/t/create-security-context/54021/3 "2025-11-11T06:11:20Z")

</div>

Hi Daniel,

Thank you so much for your answer.

So I can define as a security context one of the MZ, right? I mean, if I have a MZ called “PRO”, I can use this name and this entity as security context, right?

Thanks again.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [November 11, 2025, 1:10pm UTC](https://community.dynatrace.com/t/create-security-context/54021/4 "2025-11-11T13:10:44Z")

</div>

Yes, exactly, try it and let me know if you need more help.

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [November 16, 2025, 10:46pm UTC](https://community.dynatrace.com/t/create-security-context/54021/5 "2025-11-16T22:46:00Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;  
To supplement the answer of&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;:flexed\_biceps:  
Currently Dynatrace configure all entities in the securiy\_context the same value that it’s ManagementZone  
**Settings/Topology model / Grail security context for monitored entities**

Example: Azure

 ![PierreGutierrez_0-1763332960418.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/7/3759e941776e267198bb562dbc3937705ec0b5dd.png)

So, if you search about some of that entities:&nbsp;  
Example :

dt.entity.azure\_event\_hub&nbsp;  
You will find a information of your MZ in the Security\_context.

 ![PierreGutierrez_1-1763333083337.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a3192dd397a71b9a6bdeda8f9ff8223582d1e588.png)

I hope its helpful 💪
