The audit for this user shows success, but when using SSMS, the error that is received is 18456 and he cannot sign in

Patrick Dengler 0 Reputation points
2025-11-18T17:49:45.6+00:00

We are using integrated security. All other users have no problem getting to this database. One user, gets and 18456 error. The user is part of the SQL Contributor Group. The activity logs for login shows successful login in SQL server through AD, yet the user cannot connect

SQL Server | SQL Server Transact-SQL
{count} votes

Answer recommended by moderator
  1. Shruti Dhruv 875 Reputation points Microsoft External Staff Moderator
    2025-11-19T12:17:48.7633333+00:00

    Hi Patrick Dengler,

    This can be due to login issue.
    1.Verify login if it exists at server level.
    2.Check if the user has a mapped database user and appropriate roles (e.g., db_datareader, db_datawriter).If the user’s default database is offline or inaccessible, login can fail with 18456.
    3.Run this query to check login and database mapping

    SELECT name, type_desc FROM sys.server_principals WHERE name = 'Domain\User';
    SELECT name FROM sys.database_principals WHERE name = 'Domain\User';
    

    Lastly, share Error log so that we can assist you better.

    Hope this helps.
    Thank You


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.