How to find who updated the Azure Synapse sql database objects

Vasuki Nimalan 20 Reputation points
2024-08-26T23:34:14.21+00:00

Hi All,

We have granted access to the Active Directory User groups in our Azure Synapse SQL database objects. I can see the AD group which has created or updated a database object, I am trying to see which individual user has done the change. Can someone please help me?

Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,917 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,786 questions
{count} votes

Accepted answer
  1. Uwe Fuchs 125 Reputation points
    2024-08-27T03:58:13.9933333+00:00

    To identify which individual user within an Entra ID group has updated or created a database object in your Azure Synapse SQL database, you'll need to have diagnostic settings enabled. Here's how you can do this:

    1. Enable Azure Synapse Auditing:
      • Begin by enabling auditing on your Azure Synapse Analytics workspace. SQL Auditing logs all database activity, including object modifications, and provides insights into who performed specific actions.
    2. Set Audit Logs Destination:
      • Configure the audit logs to be sent to an Azure Storage account, Log Analytics workspace, or Event Hub. Ensure that the logs are stored in a location that is easy to query.
    3. Query the Audit Logs:

    Please note that this solution will allow you to see these changes going forward. However, if diagnostic settings were not enabled at the time of the transaction, you won’t be able to retrieve information about past actions. See here.

    Also just noting that my this response partially reworded by AI (ChatGPT) for better articulation. I have tested and validated the reponse to ensure it was still accurate.

    Image showing example kusto query and results


    If this solution resolves your issue, please click "Accept Answer" and upvote it so others in the community can benefit.


0 additional answers

Sort by: Most helpful

Your answer

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