如何创建每日摘要警报SharePoint网站的任何变化

编程入门 行业动态 更新时间:2024-10-12 03:17:29
本文介绍了如何创建每日摘要警报SharePoint网站的任何变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我最近买了一个人来接收SharePoint网站内的任何变化每日提要警报的要求;每个网站都有一个所有者是谁在负责在其网站上的内容。

I recently got the requirement for a person to receive a daily summary alert for any change within a SharePoint site; each site has an owner who is in charge of the content on their site.

我们有一些工作目前的方法是在自动设置警报每个列表/库。该网站

The current way we have something working is to automatically set up alerts for every list/library within the site.

// Get the Lists on this Site SPListCollection siteLists = currentSite.Lists; foreach (SPList list in siteLists) { if (!list.ToString().Equals("Master Page Gallery")) { if (list.ReadSecurity == 1) // user has read access to all items { // Create an Alert for this List Guid alertID = currentUser.Alerts.Add(list, SPEventType.All, SPAlertFrequency.Daily); // Set any additional properties SPAlert newAlert = currentUser.Alerts[alertID]; } } }

这造成了两个问题:

  • 用户有很多创建了不同的警报。理想:只有一个电子邮件与日常总结
  • 某种显示器都必须建立在现场检查新的列表或库,并自动设置警报的用户。
  • 问:我如何创建一个网站的所有更改每日提要警报

    推荐答案

    我相信你正在寻找的解决方案可通过审计框架。审计是在SP非常强大的,不幸的是它很容易获得由输出淹没。

    I believe the solution you're looking for is available through the auditing framework. Auditing is very robust in SP, unfortunately it's easy to get overwhelmed by the output.

    审计是对的SPSite,的SPWeb,SPList和SPItem可用属性的属性。

    The Audit is a property available on the SPSite, SPWeb, SPList, and SPItem properties.

    调整专项审计标志(使用.Audit.AuditFlags属性)使用此属性适合您的需要(具体情况将取决于你如何定义变但几乎任何你能想到的是可用)。有关的

    Adjust the specific audit flags (using the .Audit.AuditFlags properties) using this property to suite your needs (the specifics will depend on how you define "change" but almost anything you can think of is available).

    详细信息。 sharepoint.spaudit.aspx> SPAudit对象可在MSDN。

    Details about the SPAudit object are available on MSDN.

    一旦你定义要审计的内容/,你就会有获得这些信息反馈给用户。

    Once you've defined what/where you want to audit, you'll have to get that information back to your users.

    默认情况下,SP设置可在网站集级别的一些很好的报告([网站集URL] / _布局/ Reporting.aspx?类别=审计)。这些可能满足您的需求。

    By default, SP sets up some nice reports that available at the site collection level ([url of site collection]/_layouts/Reporting.aspx?Category=Auditing). These may meet your needs.

    您最初的解决方案通过电子邮件提到警报的用户。鉴于大多数用户希望集中在电子邮件他们的信息(尽管他们的MySite是把一个链接报道!伟大的地方),你有一点点更多的工作要做。

    Your initial solution mentioned alerts via email for the users. Given that most users want to centralize their information in email (though their MySite is great place to put a link to the reports!) you'll have a little more work to do.

    您可以拉使用SPAuditQuery和SPAuditEntryCollection对象通过对象模型所需的审计信息。再次, MSDN有一些关于如何使用这些对象的信息的。

    You can pull the required audit information through the object model using the SPAuditQuery and SPAuditEntryCollection objects. Again, MSDN has some information on how to use these objects.

    我会建议设置,在一天结束时运行的电子邮件用户为他们的网站的审计报告的自定义SPJobDefinition。安德鲁·康奈尔拥有一个伟大的交代如何安装在自己的博客自定义作业。

    I would recommend setting up a custom SPJobDefinition that runs at the end of the day to email the users the audit report for their site. Andrew Connell has a great explaination of how to setup a custom job on his blog.

    总结:

    • 启用审计的的SPWeb的问题
    • 创建使用SPAuditQuery和SPAuditEntryCollection每个的SPWeb
    • 创建运行SPJobDefinition每晚该报告通过电子邮件发送给每一个的SPWeb所有者

    更多推荐

    如何创建每日摘要警报SharePoint网站的任何变化

    本文发布于:2023-11-27 22:09:04,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1639787.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:警报   摘要   网站   SharePoint

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!