# IAM policy not taking effect

**URL:** <https://community.dynatrace.com/t/iam-policy-not-taking-effect/46159>\
**Category:** Open Q&A\
**Tags:** user-management, account-management, dynatrace-saas\
**Created:** [June 17, 2024, 6:15pm UTC](https://community.dynatrace.com/t/iam-policy-not-taking-effect/46159 "2024-06-17T18:15:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesD09](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jamesd09/32/24700_2.png) [@JamesD09](https://community.dynatrace.com/u/JamesD09)\
**Post date:** [June 17, 2024, 6:15pm UTC](https://community.dynatrace.com/t/iam-policy-not-taking-effect/46159/1 "2024-06-17T18:15:41Z")

</div>

Hi folks,

I am looking to lock down the ability to view logs from a certain host group with the following IAM policy:  
_“ALLOW storage:logs:read WHERE storage:dt.host\_group.id = “Hostgroup2”;”_

In theory this should lock down my user to only be able to view logs for logs written by hosts in “Hostgroup2” HOWEVER when applying the policy my user is still able to see logs written by all host groups.

Is anyone able to advise? i have followed the syntax and conditions defined in the IAM service reference documentation.

---

<div class="post-metadata">

**Author:** ![JamesD09](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jamesd09/32/24700_2.png) [@JamesD09](https://community.dynatrace.com/u/JamesD09)\
**Post date:** [June 17, 2024, 6:23pm UTC](https://community.dynatrace.com/t/iam-policy-not-taking-effect/46159/2 "2024-06-17T18:23:04Z")

</div>

You can see from the Policy review below the condition is set but does not take effect:

![JamesD09_0-1718648577622.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/3/3/332a2696bb5b1058556f02dfd3a4bbc7c2f26acb_2_690x49.png)

---

<div class="post-metadata">

**Author:** ![GerardJ](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerardj/32/154_2.png) [@GerardJ](https://community.dynatrace.com/u/GerardJ)\
**Post date:** [June 18, 2024, 8:59am UTC](https://community.dynatrace.com/t/iam-policy-not-taking-effect/46159/3 "2024-06-18T08:59:21Z")

</div>

Hi&nbsp;[@JamesD09](https://community.dynatrace.com/user/50323)

have you checked with the “effective policies” tool whether there isn’t another access right that would extend this policy and make this limitation ineffective?  
You also have to check that no RBAC permission gives the user&nbsp;more rights over logs than you’d expect.
