What does Windows error code 1389 (ERROR_TOO_MANY_SIDS) mean?

 
Previous Next
ERROR_INVALID_MEMBER ERROR_LM_CROSS_ENCRYPTION_REQUIRED

ERROR_TOO_MANY_SIDS

The SID list passed to the security subsystem exceeds the supported count

Windows authorization data frequently carries arrays of SID_AND_ATTRIBUTES entries for token groups, restricted SIDs, device groups, or authentication validation. ERROR_TOO_MANY_SIDS is a count/contract failure for such a SID collection. It should be distinguished from ERROR_TOO_MANY_CONTEXT_IDS, which explicitly occurs while a logon security context accumulates too many SIDs during group expansion.

Record the API and the exact count supplied before reducing the list. Determine whether the array came from directory group expansion, an application-built restricted token, an RPC/authentication structure, or a policy object. Check bounds and integer conversions as well as real group membership: a corrupted count can report thousands of entries even when the buffer contains only a few. If the list is legitimate, redesign the policy/group structure or split the operation only when the API contract allows it.

What to inspect

  • Log the SID count, buffer size, and API receiving the collection.
  • Validate count calculations before assuming directory group expansion is excessive.
  • Identify whether the list is token, restricted-SID, authentication, or application policy data.

References


Looking for a different code? Search another status or error code.