# How do I tag entities using Management Zones?

**URL:** <https://community.dynatrace.com/t/how-do-i-tag-entities-using-management-zones/53710>\
**Category:** Dynatrace API\
**Tags:** management-zones, tagging\
**Created:** [October 13, 2025, 6:28pm UTC](https://community.dynatrace.com/t/how-do-i-tag-entities-using-management-zones/53710 "2025-10-13T18:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavodutra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gustavodutra/32/35020_2.png) [@gustavodutra](https://community.dynatrace.com/u/gustavodutra)\
**Post date:** [October 13, 2025, 6:28pm UTC](https://community.dynatrace.com/t/how-do-i-tag-entities-using-management-zones/53710/1 "2025-10-13T18:28:08Z")

</div>

The entity selector documentation says I can use mzName(“name”) or mzId(“123”) to apply automatic tags, but in practice, this doesn’t work.

Can anyone help me?

Example in the attachment.

 ![gustavodutra_0-1760380063672.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0e8fc0998cc74106ad4b38e3ce83da6879800736.png)

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [October 13, 2025, 6:49pm UTC](https://community.dynatrace.com/t/how-do-i-tag-entities-using-management-zones/53710/2 "2025-10-13T18:49:37Z")

</div>

In fact, [the doc](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v2/entity-selector#mzname) says that you can use the mzName;mzID in the entity selector API call.

It seems that it can not be used when applying Auto tags based on entity selector rule.
