The user has not been granted the requested logon type at this machine.

Eric Vanderveer 6 Reputation points
2022-03-04T20:08:26.193+00:00

I have an AzureAD workstation that I am having problems getting an AzureAD user to login into. I have tried another Azure AD account with no problems. I am getting this error "The user has not been granted the requested logon type at this machine." I have a configuration profile that adds the Azure AD accounts to the security poilicy so these accounts can log onto the computer locally. I have no idea why this account is having the problem.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,901 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 34,791 Reputation points Microsoft Employee
    2022-03-04T23:02:52.05+00:00

    Hi @Eric Vanderveer ,

    Problem summary

    While logging in with a particular Azure AD user, you receive the error, "The user has not been granted the requested logon type at this machine."

    The account has been added to a security policy that allows it to log on locally, but it still can't log in. This happens on one Azure AD user account in particular, but does not happen on all accounts.

    Troubleshooting steps

    1) This error can occur if the desktop policy Access this computer from the network has been modified from the default values so that the users and groups listed in this policy no longer contain the user or group entries for the particular user logging on.

    To resolve this issue, edit the Access this computer from the network local policy on the desktop to restore the "Users" access group or add one or more user and group values to provide the required access.

    180246-image.png

    This can also be configured under Computer Configuration > Windows Settings> Security Settings > Local Policies > User Rights Assignment.

    180206-image.png

    Also, ensure that "Deny logon locally" is not applied to the same user or group containing the user.

    2) After adding the user to the "Allow Logon Locally" policy or default domain controller policy, ensure that gpupdate /force to ensure that the policy update has been applied.

    3) If this is a Domain Controller and they're logging on via batch queue tool such as Task Scheduler, check if the user account or the group to which it belongs to is added to the Logon as a batch job Policy in the Windows Domain Controller Security Policy.

    Let me know if you are still facing this issue after trying these steps.

    References and additional resources:
    The user has not been granted
    Error 1385: The user has not been granted the requested logon type at this time
    Error 1385

    0 comments No comments

  2. Eric Vanderveer 6 Reputation points
    2022-03-07T16:53:14.09+00:00

    This did not work. This is an Azure AD joined computer and I have created a Device Configuration in Endpoint Manager that adds all the AzureAD accounts that are allowed to login locally. All computers have this setting set and I can login with other AzureAD accounts but this one say's it can't. I have confirmed the AzureAD account had been added to this policy and Endpoint Manager shows it succedded with this computer. I can't add this manually because WIndows 10 says it can't find the account.

    0 comments No comments

  3. Eric Vanderveer 6 Reputation points
    2022-03-09T18:06:42.767+00:00

    Fixed. In Intune/Device Configuration the setting to allow local login one of the AzureAD email addresses was wrong and every Azure email after that did not get pushed over to the computer. The user with this issue happened to be at the bottom of this list. This is resolved.

    0 comments No comments