Some users cannot connect to Azure SQL Servre from Access

Jen Phillips 0 Reputation points
2023-03-09T14:16:52.5266667+00:00

We have set up an Azure SQL Server database. We're trying to use an Access database as the front end, using Azure Active Directory authentication.

We've got one user connecting without any issues (the one that created the SQL Server database and Access database). We can't add a second user.

The second user has been added as an owner of the SQL Server database in Azure dashboard. I've tried to add her to the master database in SQL Server, but I'm not sure if I've done that right.

When we try to connect using Access, we get an SQL Server 18456 error, with " Login failed for user '<token-identified principal>' "

How can we give this user, and others, access to the SQL Server database?

Azure SQL Database
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
333 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,371 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rahul Randive 9,091 Reputation points Microsoft Employee
    2023-03-11T20:01:34.4533333+00:00

    Hi,

    Thanks for sharing error message.

    Error: Login failed for user '<token-identified principal>', it means the user is invalid, usually related to a AAD user that does not have user created on SQL DB that you are trying to connect (User DB or Master DB) or that the user is not the AAD Server Admin.

    Please check below blog for more details and about mitigation steps

    https://techcommunity.microsoft.com/t5/azure-database-support-blog/aad-auth-error-login-failed-for-user-lt-token-identified/ba-p/1417535

    0 comments No comments