Forum Discussion

Oded Belahousky's avatar
Oded Belahousky
Copper Contributor
Nov 11, 2018

Is there a way to create audit log events using any programmatic sharepoint api?

Hi,

Is there a way to programmatically create Audit log events using any sharepoint api (CSOM, REST...)?

3 Replies

  • Dean_Gross's avatar
    Dean_Gross
    Silver Contributor

    I don't think that you can create your own custom audit log events. What version of SharePoint? what is your actual goal?

    • Oded Belahousky's avatar
      Oded Belahousky
      Copper Contributor

      SharePoint Online. 

      To create test cases to check monitoring the audit log.

      • Dean_Gross's avatar
        Dean_Gross
        Silver Contributor

        One way to do that would be to use PowerShell, either the SPO Management Shell or the PnP cmdlets to generate events that you could then look for in the audit log.

Resources