# How to limit a oauth token enviroment access/usage

**URL:** <https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322>\
**Category:** Open Q&A\
**Tags:** user-management, tokens\
**Created:** [June 26, 2024, 2:21pm UTC](https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322 "2024-06-26T14:21:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 26, 2024, 2:21pm UTC](https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322/1 "2024-06-26T14:21:29Z")

</div>

Hello,

When you create an oauth token in an account, is there a way to limit access to certain environments?

KR Henk

---

<div class="post-metadata">

**Author:** ![marina\_pollehn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marina_pollehn/32/39120_2.png) [@marina\_pollehn](https://community.dynatrace.com/u/marina_pollehn)\
**Post date:** [July 1, 2024, 1:15pm UTC](https://community.dynatrace.com/t/how-to-limit-a-oauth-token-enviroment-access-usage/46322/2 "2024-07-01T13:15:47Z")

</div>

OAuth clients cannot have a bigger scope than the access rights of the underlying user/service account. So if you use a service account with limited environment access, it should do. Still have to test it 🙂
