# When generating personal access tokens, the required scope logs.read (Read logs) is missing

**URL:** <https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963>\
**Category:** Open Q&A\
**Tags:** user-management, tokens\
**Created:** [June 5, 2025, 2:53pm UTC](https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963 "2025-06-05T14:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HARUTYM](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@HARUTYM](https://community.dynatrace.com/u/HARUTYM)\
**Post date:** [June 5, 2025, 2:53pm UTC](https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963/1 "2025-06-05T14:53:08Z")

</div>

When I generate a Personal Access Token, it does not include the required logs.read (Read logs) scope.

Even when I create a token with all available scopes, I receive the following error when calling the “/logs/export” API:

{  
“error”: {  
“code”: 403,  
“message”: “Token is missing required scope. Use one of: logs.read (Read logs)”  
}  
}

---

<div class="post-metadata">

**Author:** ![Akhil-Jayendran](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/akhil-jayendran/32/153_2.png) [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Post date:** [June 5, 2025, 8:35pm UTC](https://community.dynatrace.com/t/when-generating-personal-access-tokens-the-required-scope-logs-read-read-logs-is-missing/51963/2 "2025-06-05T20:35:02Z")

</div>

Hi&nbsp;[@HARUTYM](https://community.dynatrace.com/user/91666)&nbsp;,

That’s correct PAT token is not covered the socope "&nbsp;logs.read". You can read&nbsp;[here](https://docs.dynatrace.com/docs/manage/identity-access-management/access-tokens-and-oauth-clients/access-tokens/personal-access-token#available-scopes)&nbsp;.  
If you like to have a token with scope “logs.read” then you have to generate access token&nbsp;[here](https://docs.dynatrace.com/docs/manage/identity-access-management/access-tokens-and-oauth-clients/access-tokens#create-api-token)&nbsp; but for this you might required environment level access.

BR
