Kerberos Sign-In to IIS Fails With HTTP 400 Request Header Too Long for Users in Many Groups: Raise the Limits
Overview
Users in many groups get HTTP 400 Request header too long from IIS because their Kerberos token outgrows the header limit. Estimate the token, raise MaxFieldLength and MaxRequestBytes to a calculated value, restart in a window and test.
Diagnose
Symptom
What responders observe.
Start here when a handful of users, usually long-serving staff, administrators or service desk members, get an error from one intranet site while colleagues reach it normally. The browser shows HTTP 400 - Bad Request (Request header too long) for a site that uses Windows Integrated Authentication.
The affected users belong to many Active Directory groups, and the failure started after group memberships were added or merged. The same users may also find that Group Policy settings do not update.
Microsoft notes that NTLM keeps working in the same conditions, so the problem can go unnoticed until someone looks at the Kerberos behaviour.
Detection
Metrics, logs and confirmation commands.
Root cause
Why the incident occurred.
Contain and prevent
Blast radius
What else this can affect.
Prevention
Controls and guardrails that stop it recurring.
-
Cut the groups.
-
Microsoft lists reducing group memberships as the first workaround.
-
Save each user's membership list before removing any, and read how a Domain Admins cleanup broke Group Policy results reports before trimming privileged groups.
-
Enable the Group Policy setting Computer Configuration\Administrative Templates\System\KDC\Warning for large Kerberos tickets.
-
Windows Server 2012 and later can then log Event ID 31 when a token passes a threshold.
-
Trace that policy change with the GPO change tracing runbook.
-
Add token size to the checklist for merging groups or adding claims, and record the Http.sys values in the server's build notes so a rebuild does not lose them.
Fix
Pre-flight checks
Check these before you change anything.
Rights to edit the registry on the IIS server and a change window to restart the HTTP service and IIS.
The name of the site owner and a list of users who are affected.
Commands
whoami /groups /fo csv /nh
whoami /claims
klist
Verify and recover
Verification
Evidence required before you close the incident.
On the IIS server read the MaxFieldLength and MaxRequestBytes values under the HTTP Parameters key. — Both entries exist and hold the calculated value V, and V is not above 65,536. — Both values match V.
Ask one affected user to sign in again and open the site, then repeat with a second affected user. — The page loads without an HTTP 400 response for both users. — Both users reach the site.
Watch the site's health check and the affected users' reports for a day. — No new HTTP 400 Request header too long responses. — No repeat after the change time.
Rollback
The safe way back.
Restore the recorded values of MaxFieldLength and MaxRequestBytes on the IIS server
remove only the entries you created, then restart the HTTP service and IIS.
If MaxTokenSize was changed, restore its previous value or remove the entry you added on each computer, then restart each computer.
If anything else breaks, restore the registry from the backup saved in the change ticket.
Escalate when
Conditions that need another owner.
-
Escalate to the Active Directory owners if V comes out above 65,536, or if the largest token is close to 48,000 bytes.
-
At that point the lasting fix is fewer groups, not larger limits.
-
Also escalate if a user belongs to more than 1,010 groups.
-
Microsoft documents that as a separate limit on the LSA access token, and Kerberos and NTLM sign-in can both fail.
-
Open a Microsoft support case if the 400 persists after the limits cover your estimate.
-
Include the user's group count, the formula inputs, the registry values and the exact error text.
-
Microsoft support Site owner Active Directory owners.
Fixed? Get the next one before it hits you: The KBY Brief
Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Found this useful? Follow KBY for more like it.
Sources
Based on the vendor sources listed below. Check each step against your environment before acting.
First published 2 December 2026
Problems with Kerberos authentication when a user belongs to many groups
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
HTTP 400 Bad Request (Request Header too long) responses to HTTP requests
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
whoami
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
klist
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Incident Response Recommendations and Considerations for Cybersecurity Risk Management
Cited for: Supports the documented platform behaviour, diagnosis or recovery controls used by this Runbook.
Recommended reading
More from KBY that goes with this runbook.
Related runbooks
Duplicate SPN Breaks Kerberos Sign-In to an Internal Service: Find It With setspn -X and Remove the Stale Copy
Two accounts holding the same SPN stop Kerberos working for one internal service. Find the duplicate with setspn -Q and -X, save each account's SPNs, remove the stale copy with setspn -D, and test one client with klist.
Active Directory Kerberos Logons Fail Because a Member Server Clock Is Skewed
Diagnose Kerberos authentication failures caused by clock skew on a Windows member server and safely restore time synchronization before validating logons.
