ERROR_LOGON_NOT_GRANTED - 1380 (0x564)

Logon failure: the user has not been granted the requested logon type at this computer.

Updated: Feb 21, 2026

Technical Background

The ERROR_LOGON_NOT_GRANTED error (1380, 0x564) is a specific Windows API error that indicates a failure in user logon due to insufficient permissions or an unsupported logon type. This error typically arises when the security context of the user attempting to log on does not meet the requirements for the requested operation.

Error Details

The ERROR_LOGON_NOT_GRANTED error is returned by various Windows APIs and services, such as the Local Security Authority (LSA) or the Winlogon service. It signifies that the user account has been authenticated but lacks the necessary permissions to perform the specific logon type requested. This can include issues related to interactive logons, network logons, or other specialized logon types.

Common Causes

  • Incorrect User Account Permissions: The user account may not have the required permissions for the specified logon type. For example, a standard user might not be able to perform an interactive logon that requires administrative privileges.
  • Unsupported Logon Type: The requested logon type is not supported by the current security context or configuration of the system. This can include issues with Kerberos authentication or other advanced logon mechanisms.

Real-World Context

This error commonly occurs in scenarios where a user attempts to perform an operation that requires elevated privileges, such as running an application that necessitates administrative rights, or when a service tries to authenticate using a specific logon type that is not permitted by the system's security policies.

Is This Error Critical?

The criticality of this error depends on the context in which it occurs. In many cases, it can be resolved by adjusting user permissions or changing the requested logon type. However, if the issue persists, it may indicate a more severe configuration problem that requires further investigation.

How to Diagnose

  1. Review Operation Context: Determine the specific operation that triggered the error and ensure that the security context is appropriate for the task at hand.
  2. Validate Parameters: Check the parameters passed to the API or service call to ensure they are correct and valid.
  3. Confirm Object Types: Verify that the user account and logon type match the expected requirements of the operation.
  4. Verify Input Data: Ensure that all input data, such as passwords or credentials, are correctly provided and not corrupted.
  5. Check Limits or Constraints: Confirm that there are no system limits or constraints that could be preventing the requested logon type from being granted.

How to Resolve

  1. Correct Parameter Usage: Ensure that the parameters passed to the API or service call are correct and match the expected requirements.
  2. Adjust Operation Context: Modify the security context or user account permissions as necessary to allow the requested logon type.
  3. Restore Data: If data corruption is suspected, restore any corrupted credentials or configuration files.
  4. Retry Operation with Valid Inputs: Attempt to perform the operation again using valid and correctly formatted inputs.

Developer Notes

When developing applications that require specific logon types, ensure that you handle ERROR_LOGON_NOT_GRANTED appropriately by providing clear error messages and suggesting corrective actions. Additionally, consider implementing mechanisms to dynamically adjust user permissions or logon types based on the context of the operation.

Related Errors

  • ERROR_INVALID_PARAMETER (1208): Occurs when an invalid parameter is passed to a function, which can sometimes lead to ERROR_LOGON_NOT_GRANTED if the parameter affects security contexts.
  • ERROR_ACCESS_DENIED (5): Indicates that access was denied for some reason, which could be related to insufficient permissions or unsupported logon types.

FAQ

Q: What does ERROR_LOGON_NOT_GRANTED mean?

A: It indicates a failure in user logon due to insufficient permissions or an unsupported logon type. The error typically arises when the security context of the user attempting to log on does not meet the requirements for the requested operation.

Q: How can I resolve ERROR_LOGON_NOT_GRANTED?

A: You should review the operation context, validate parameters, confirm object types, verify input data, and check system limits. Adjusting user permissions or changing the requested logon type may also be necessary.

Summary

The ERROR_LOGON_NOT_GRANTED error (1380) is a specific Windows API error that indicates a failure in user logon due to insufficient permissions or an unsupported logon type. This error can occur in various scenarios and requires careful diagnosis and resolution based on the context of the operation. By understanding the common causes, real-world context, and appropriate diagnostic and resolution steps, developers can effectively handle this error and ensure smooth application functionality.