Hi @Seema Nair
Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.
The error message you're encountering,
Login failed for user '<token-identified principal>'
, typically indicates that the service principal does not have sufficient permissions in the Azure Synapse Analytics workspace. Here are some steps you can take to troubleshoot and resolve the issue:
Check Service Principal Credentials - Ensure that the service principal credential exists as a user in the Synapse Analytics workspace. You can create an external user for the service principal using the following SQL command:
CREATE USER <serviceprincipal> FROM EXTERNAL PROVIDER
Grant Permissions - If the service principal credential has insufficient permissions, you may need to grant the necessary permissions. For example, to grant SELECT
permissions, you can run:
GRANT SELECT TO <serviceprincipal>
Check Managed Identity - If you are using Managed Identity for authentication, ensure that it is enabled and that the necessary permissions are granted to the Managed Identity on the Azure Synapse workspace.
Role Assignment - Make sure that the service principal has been assigned the appropriate role, such as Synapse Administrator or Synapse SQL Administrator, in the Azure portal.
By following these steps, you should be able to resolve the login failure issue.
Similar issue for reference: https://learn.microsoft.com/en-us/answers/questions/133709/login-failed-for-user
For more details refer to these documentations:
- Troubleshoot the Azure Synapse Analytics, Azure SQL Database, SQL Server, Azure SQL Managed Instance, and Amazon RDS for SQL Server connectors in Azure Data Factory and Azure Synapse
- Connect to Azure Synapse Analytics dedicated pool
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.