ERROR_NON_DOMAIN_SID - 1258 (0x4EA)

The security identifier provided does not have a domain component.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_NON_DOMAIN_SID is a specific error code indicating that the security identifier (SID) provided in an API call lacks a domain component. This typically occurs when a SID is expected to represent a user or group within a specific domain, but the provided SID does not include such information.

Error Details

The ERROR_NON_DOMAIN_SID error code is returned by various Windows APIs that require SIDs as input parameters. The presence of this error suggests that the application attempted to use a local SID (which typically represents users or groups within the same security context) in a scenario where a domain SID was expected.

Usage Context

This error can occur in scenarios such as:

  • Cross-domain operations, where SIDs from different domains are involved.
  • Group policy processing, where SIDs need to be validated against specific domains.
  • Security-related functions that require detailed information about the security context of entities within a domain.

Developer Interpretation

Developers should ensure that when using APIs that expect SIDs, they provide appropriate and correctly formatted SIDs. Specifically, if a domain component is required, the SID must include this information to avoid triggering ERROR_NON_DOMAIN_SID.

Related Errors

  • ERROR_INVALID_SID: Indicates an invalid format for the provided SID.
  • ERROR_NO_SUCH_USER: Indicates that the user or group specified by the SID does not exist.
  • ERROR_NOT_A_REVISIONED_SID: Indicates that the revision level of the SID is incorrect.

FAQ

Q: What causes ERROR_NON_DOMAIN_SID?

A: This error occurs when a local SID is provided in an API call that expects a domain SID. Ensure that SIDs are correctly formatted and include the necessary domain information.

Q: How can I resolve this issue?

A: Verify that the SIDs used in your application match the expected format, particularly ensuring that they include the correct domain component if required by the API.

Summary

The ERROR_NON_DOMAIN_SID error code is a specific parameter-related error indicating an incorrect or missing domain component in provided SIDs. Developers should ensure proper formatting and validation of SIDs to avoid this issue.