SharePoint SC "Audit Settings"功能與CSOM的對應
SharePoint網站集中有個關於審計的功能:"Site collection audit settings",可以用CSOM通過Site的一些屬性去設定它。
Audit Log Trimming部分:
Automatically trim the audit log for this site?
對應的屬性為:site.TrimAuditLog
布林型別,通過true/false的設定進行更新。
Optionally, specify the number of days of audit log data to retain:
對應的屬性為:site.AuditLogTrimmingRetention
整型,通過數字來設定審計日誌保留的天數。
If you'd like to keep audit data for longer than this, please specify a document library where we can store audit reports before trimming occurs:
這個目前比較麻煩,沒有暴露了出屬性來,可以通過web的_auditlogreportstoragelocation屬性獲取和設定,但是幸運的是隻能選擇Root Web上的某個文件庫的位置:
site.RootWeb.AllProperties["_auditlogreportstoragelocation"]
Specify the events to audit:對應的屬性為:site.Audit.AuditFlags
列舉型別,多個選項用|連線,例如:
audit.AuditFlags = AuditMaskType.Update | AuditMaskType.Copy | AuditMaskType.Move | AuditMaskType.Search;
以上就是審計設定相關的CSOM屬性,可以用來方便地獲取與設定網站集的審計設定。相關文章
- Oracle Audit 審計功能的認識與使用Oracle
- Sharepoint 開啟發布功能的PowerShell
- mysql 5.7新增server_audit 安全審計功能MySqlServer
- SharePoint Server 2016 在原有功能的基礎上增加的內容Server
- ORACLE AUDITOracle
- 全新的SharePoint 2019
- Windows sc命令Windows
- 直播商城原始碼,Android實現監聽Settings值變化的功能原始碼Android
- 成品直播原始碼,Android實現監聽Settings值變化的功能原始碼Android
- mysqlalchemy audit extensionMySql
- audit by user by table
- Oracle Audit setupOracle
- springcloud alibaba與springboot對應的版本GCCloudSpring Boot
- pg_file_settings和pg_settings系統檢視的區別
- AUDIT審計(2)
- MySQL審計auditMySql
- Computer Science 320SC
- RabbitMQ與Erlang的版本對應關係MQ
- Spring AOP與AspectJ的對比及應用Spring
- PDM技術的基本功能與應用
- 體感互動大屏的功能與應用
- Unable to save settings: Failed to save settings. Please restart PyCharm解決AIRESTPyCharm
- some settings for spacemacs golangMacGolang
- iOS之Settings BundleiOS
- fluentd 推送 mariadb audit log
- ORACLE AUDIT審計(1)Oracle
- 2.2.6 Overview of Common Audit ConfigurationsView
- linux監控工具auditLinux
- SQL Server 審計(Audit)SQLServer
- HBase 的結構與表的對應關係
- SharePoint詞彙表
- c#版本與vs的對應關係C#
- 詳解Python中sys模組的功能與應用Python
- iOS開發Settings.bundle的使用iOS
- Maven的settings.xml檔案配置MavenXML
- 資料洩密的危害,原因,與應對策略
- Firefox的降級與驅動對應關係Firefox
- Inspection Points: Key settings and Usage
- sc-token傳參方式20240613