Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [spaudit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
63 views

Issues retrieving SharePoint Online Audit Data

When I try to retrieve the Sharepointonline audit data using search-unifiedauditlog .For an particular site it seems to be getting only pageview where as other events are not able to be fetched Even ...
sai monesh's user avatar
0 votes
1 answer
253 views

Run Audit log report programmitically for "Edit User & Permission"

I am able to create audit log report using UI of Sharepoint but everytime I have to run a custom report. I have to generate this log automatically using Programming. I have gone through internet and ...
Amardeep Gupta's user avatar
2 votes
0 answers
506 views

How to get the SharePoint Group Name based on PrincipalID

I am trying to get the name of SharePoint group based on PrincipalID, But finding no luck with below code. Can anyone help me in getting with below concern. XmlDocument xmlEventData = new ...
MSA's user avatar
  • 1,155
0 votes
1 answer
354 views

Convert the SOM to PowerShell

Can any one help me the conversation of below code to Power-Shell SPSite site = new SPSite("http://sp/sites/dev"); SPAuditQuery query = new SPAuditQuery(site); query.SetRangeStart(...
MSA's user avatar
  • 1,155
1 vote
1 answer
88 views

This row already belongs to this table while binding the SpAudit Entries

Can any one help me in knowing what's wrong in my code Because I want all the columns from Audit entries should get create in my Data Row dynamically using (SPSite mysiteCollection = new SPSite(...
MSA's user avatar
  • 1,155
0 votes
1 answer
117 views

Trying to use an SPWeb object that has been closed or disposed and is no longer valid.

Can any one let me know what's the issue in my below code and how can I solve this SPSite mysiteCollection = new SPSite(SPContext.Current.Site.ID); SPWeb web = mysiteCollection.OpenWeb(); ...
MSA's user avatar
  • 1,155
1 vote
0 answers
63 views

Identify the Group Name for SharePoint List or document library Item in Site Collection

6 months back I had assigned the group name "Designers" to few of the list & document library items for a one of the SharePoint site Collection. Now I would like to find the items holding ...
MSA's user avatar
  • 1,155
2 votes
2 answers
116 views

Code for Activating and Deactivating Audit Feature

I am seeking for Server Object model to Activate and deactivate the SharePoint Audit Feature. Can any one help me how can I achieve this?
MSA's user avatar
  • 1,155
2 votes
2 answers
171 views

Allow SharePoint Audit to Read only 1 week of SharePoint Site Report

I have very large site collection ,And Enabled Audit feature for it. My Server Performance is getting effected on Server ,As Audit is holding large amount of report . I would like to make audit to ...
MSA's user avatar
  • 1,155
1 vote
1 answer
250 views

Delete Specific Audit Entries using SPAudit.DeleteEntries

Currently, we can only delete all audit events that occurred before a specified date and time from the SharePoint Content DB, using the SPAudit.DeleteEntries method by passing the DateTime parameter. ...
Ven's user avatar
  • 1,147
1 vote
0 answers
186 views

SPAuditQuery.RowLimit and Paging in Auditing

While trying to retrieve the Auditing entries programmatically, we pass the SPAuditQuery instance to the SPAudit.GetEntries method. The SPAuditQuery has a RowLimit property. Are there any limits (...
Ven's user avatar
  • 1,147
2 votes
1 answer
261 views

Can we customize SharePoint audit reports? How to add new custom columns to SharePoint audit reports?

Can we customize SharePoint audit reports? I want to add new custom columns to SharePoint audit reports. I want to show version history comment in SharePoint audit reports. How to add new custom ...
Jay Shah's user avatar
  • 138
0 votes
1 answer
117 views

Failure to turn on list auditing programatically

I have a SPListEventReceiver with a ListAdded() override that responds to the creation of Document Libraries. What I am trying to do is turn on auditing for the newly created Document Library like so: ...
KidBatman's user avatar
  • 381
4 votes
1 answer
221 views

What does the property 'EffectiveAuditMask' in SPAudit class means?

AuditFlags property(SPAudit Class) indicates the events which are to be audited. What is effective audit mask for ?? By default, I could see its value "None".
Gokul's user avatar
  • 303
0 votes
2 answers
145 views

Add many entries to SPAudit

I want to create multiple entries of SPAudit for test it before use it in real environment. I supposed that I just can open a web many times and generate as many entries as I want. So i wrote this: ...
Alex Zhukovskiy's user avatar
0 votes
2 answers
415 views

How to change SPAudit entries?

For example, I want to get all audit entries and increase EventDate on one hour, and after save changes. So generaly I want to be able to change SPAuditEntry properties and after update all changes in ...
Alex Zhukovskiy's user avatar
1 vote
1 answer
2k views

Using SPAuditQuery to surface users that have read a document, but are part of a Group

I am using the following code to return the details of users that have read a document: private List<Int32> GetWhoHasRead() { List<Int32> returnList = new List<...
Mahendran Govender's user avatar
0 votes
1 answer
166 views

how to convert spauditentry to xml file

I have this SPAuditEntryCollection object where in the entries are coming in XML format. I need to convert this to excel. But before tha,t do I need to convert that to XML file so that I then read ...
Sandeep Wagh's user avatar
2 votes
2 answers
1k views

Restrict SPAuditQuery to return only results from a single SPWeb

It seems there is no simple way to only return results from an SPWeb and not the entire site collection when using SPAuditQuery to query the audit log. It's possible to use both: SPSite.Audit....
Thomas's user avatar
  • 980
0 votes
1 answer
1k views

What does the field <newauditmask> in the audit logs mean?

I see this in the Eventdata field of audit log reports for the event 'Audit mask change' <NewAuditMask>15295</NewAuditMask> <NewAuditMask>0</NewAuditMask> <NewAuditMask>...
user1630812's user avatar
1 vote
0 answers
646 views

There's a way to sort the SPAuditQuery at Query construction level?

If we have SPAuditQuery auditQuery = new SPAuditQuery(context.Site); auditQuery.RestrictToListItem(item); auditQuery.RowLimit = (uint)numberOfEvents; auditQuery.SetRangeStart(startRange); ...
Rob Alarcon's user avatar
0 votes
1 answer
902 views

Exception at Audit Custom Report

I've run into following issue when i try to execute Audit Custom Report on one of the site collections. 10/19/2012 09:30:02.03 w3wp.exe (0x211C) 0x12D8 SharePoint Foundation Runtime tkau ...
Marek Kembrowski's user avatar
4 votes
1 answer
4k views

Can I Access the SPAuditQuery from the JavaScript Class Library?

Or there's a SP2010 Built-in service to access Audit data? [UPDATE] Quick awnser, No, there's no way to access the SPAuditQuery from the SP JavaScript Class Library. At the end I end up using a WCF ...
Rob Alarcon's user avatar
0 votes
2 answers
959 views

Audit Logs - Document Library Folders are also counted

I have enabled Audit Logging for a MOSS 2007 site. This was done primarily to get reports for a document library which has folders and files inside them. Everything works fine except that for every ...
Shoban's user avatar
  • 1,061
1 vote
1 answer
3k views

SP2010: Best Practices to use SPAudit

I would like to use the security audit log report of a site collection, and evaluate the entries e.g. each hour. The focuss lays on actions/events performed on the access rights on the site. Which ...
Wim Hill's user avatar
  • 723