# IAM Policies - Restric metrics, entities for namespace scope

**URL:** <https://community.dynatrace.com/t/iam-policies-restric-metrics-entities-for-namespace-scope/47627>\
**Category:** Open Q&A\
**Tags:** user-management, grail\
**Created:** [September 12, 2024, 1:51pm UTC](https://community.dynatrace.com/t/iam-policies-restric-metrics-entities-for-namespace-scope/47627 "2024-09-12T13:51:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [September 12, 2024, 1:51pm UTC](https://community.dynatrace.com/t/iam-policies-restric-metrics-entities-for-namespace-scope/47627/1 "2024-09-12T13:51:55Z")

</div>

Hi,

Currently we are working on creating IAM policies in order to restrict Grail data for only one namespace. With logs and events there is no problem (ALLOW storage:events:read, storage:logs:read where storage:k8s.namespace.name = “namespace-name”😉

When it comes to the metrics or entities, even creating the security\_context does not have the intended effect.  
There is a possibilty that it doesn’t work because we dont have metrics in Grail enabled.

Does anybody faced the same “issue”?

Best Regards  
Patryk

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [October 8, 2024, 3:29pm UTC](https://community.dynatrace.com/t/iam-policies-restric-metrics-entities-for-namespace-scope/47627/2 "2024-10-08T15:29:19Z")

</div>

Hello&nbsp;Patryksp,

Yes, for access management to the information stored in Grail to work, you need to have the information stored in Grail.
