I have three Entra Groups configured that contain both users and a System Managed Identities (SMI) from a Synapse Workspace. These entra groups have been added as SQL Users with the appropriate permissions to an Azure SQL DB. I have been running Synapse Pipelines and Power BI Refreshes off this DB using Entra Users and the SMI for 2 years now with no issues. The users have the correct SQL roles and have been able to log in historically.
Seemingly without a pattern the Entra Groups will loose all access to the SQL DB. The only Entra user that can seemingly access the database is the Entra Admin. All of the groups loose access for both users and for the SMI. I created a new SQL user with the same permissions as the Entra Groups and that worked fine but the Entra Groups lost access, despite still displaying in the SQL server as active users with the correct roles. Then after 3 days of no access, I tested the Entra Group access again, and it worked just fine.
An added layer of confusion the same Entra Groups that lost access to one Azure SQL Server and DB, also had access to a separate one, and that authentication and connectivity was working just fine during the same time frame the group was unable to access the problematic DB. This makes me think it was not a configuration issue with the Entra Group.
The error I was receiving in Synapse from the SQL Server was as follows:
''Type=System.Data.SqlClient.SqlException,Message=Login failed for user 'xxxxxx'.,Source=.Net SqlClient Data Provider,SqlErrorNumber=18456,Class=14,ErrorCode=-2146232060,State=1,Errors=[{Class=14,Number=18456,State=1,Message=Login failed for user 'xxxxxx'.,},],'
Has anyone else experienced a similar issue and has anyone found the cause?