# Dynatrace workflow executed by service user not working anymore

**URL:** <https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959>\
**Category:** Automations\
**Tags:** user-management, workflows\
**Created:** [May 20, 2026, 9:55am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959 "2026-05-20T09:55:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [May 20, 2026, 9:55am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959/1 "2026-05-20T09:55:43Z")

</div>

Hello,

Since the beginning of the week, the [workflows](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows) executed by a [service user](https://docs.dynatrace.com/docs/manage/identity-access-management/user-and-group-management/access-service-users) are not running anymore and failing with the following error.

```javascript
431: Request Header Fields Too Large
    at MetricsClient.query (file:///opt/sdk_modules/@dynatrace-sdk/client-classic-environment-v2@4/esm/index.js:14847:21)
    at eventLoopTick (ext:core/01_core.js:177:7)
    at async computeAvailabilityFor (file:///script.ts:118:20)
    at async default (file:///script.ts:21:9)

```

The failing API is the following : `/platform/classic/environment-api/v2/metrics/query?metricSelector=builtin`.  
The same workflow is executed without issue with a “standard” user. The issue is only happening with service users.

I’ve read the&nbsp;[Error when running DQL Query through workflow](https://community.dynatrace.com/post/223541)&nbsp;but do not know how to restrict authorizations for a service user and don’t understand why it is suddenly failing as it worked without problem since 2025.

Are you aware of any change for the workflow or any permission required for the service user ?

Thanks.

Florent

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [June 2, 2026, 4:29am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959/2 "2026-06-02T04:29:01Z")

</div>

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

The error 431: Request Header Fields Too Large is typically caused by the request exceeding the allowed HTTP header size.

In workflows, this is known to occur when the executing identity (particularly a service user) has too many permissions or scopes assigned. These permissions are included in the request context and can cause the header size to exceed platform limits.

Why it works with a standard user:&nbsp;Standard users typically have fewer directly-bound policies, they inherit permissions through groups, which keeps the token smaller.

Recommended actions:&nbsp;Review the service user’s assigned groups and policies.&nbsp;Reduce permissions to the minimum required scopes only.

Thanks

Sujit

---

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [June 2, 2026, 7:27am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959/3 "2026-06-02T07:27:13Z")

</div>

Hi&nbsp;[@sujit\_k\_singh](https://community.dynatrace.com/user/67382)&nbsp;,

Thanks for your reply. I’ve checked the audit, we did not change the permissions and it was working 3 weeks ago.  
For this reason, I don’t think it is related (directly) to the permissions of the service user.

Thanks,

Florent

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [June 2, 2026, 9:29am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959/4 "2026-06-02T09:29:25Z")

</div>

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

Thanks for confirming. If permissions haven’t changed then I am not sure what could be the reason,&nbsp;Support ticket is your best path here.

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [June 2, 2026, 9:42am UTC](https://community.dynatrace.com/t/dynatrace-workflow-executed-by-service-user-not-working-anymore/55959/5 "2026-06-02T09:42:23Z")

</div>

Hello&nbsp;[@sujit\_k\_singh](https://community.dynatrace.com/user/67382)&nbsp;,

Thanks.  
I’ve opened a support ticket but they are also unsure about the issue. 😉 It looks like the old metric API is not working the same way as before as the new API is not impacted.

Florent
