官术网_书友最值得收藏!

Monitoring changes: View Setup Audit Trail

You can monitor any setup change on the organization, such as user-related changes (password and email address changes) or any change in your organization's components (from workflow rules to Apex classes, and from login IP ranges to sharing rules).

Go to Setup | Security | View Setup Audit Trail to see a list of the last 20 changes or to download the complete lists from the last 6 months:

View Setup Audit Trail page

This page is extremely useful in organizations with multiple admins as anyone can keep track of all the changes.

From this page, we can also track delegated administration operations made by users in the delegated groups (the Delegated User column shows a flag). This way, you can monitor the behavior of your delegates and decide whether they are acting as expected (and if your trust is well placed).

To read the full list of available tracked changes, refer to Salesforce Support (see https://help.salesforce.com/articleView?id=admin_monitorsetup.htm&type=0).

We can query this information using the SetupAuditTrail object via Data Loader or any API client (refer to https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_setupaudittrail.htm for more information).

As an example, the following SOQL query returns all recent permission set changes:

Select Action, CreatedBy.Username, CreatedDate, DelegateUser, Display, Section from SetupAuditTrail Where Action = 'PermSetCreate' order by CreatedDate DESC

This leads to the following result:

To run this SOQL query, you can use Data Loader, Salesforce Workbench (read more at https://trailhead.salesforce.com/en/content/learn/modules/database_basics_dotnet/sql_to_soql), or tools such as browser extensions.
主站蜘蛛池模板: 宾川县| 阿城市| 邵阳县| 依兰县| 新营市| 板桥市| 嘉义县| 莱阳市| 仪征市| 沙湾县| 莎车县| 潞西市| 南京市| 达拉特旗| 依兰县| 清流县| 怀柔区| 稻城县| 阿荣旗| 青川县| 阜新市| 普安县| 元朗区| 桐乡市| 临夏县| 安徽省| 上林县| 富蕴县| 隆化县| 樟树市| 孝义市| 南通市| 临高县| 石棉县| 大方县| 三台县| 彭水| 长寿区| 沅陵县| 古蔺县| 上杭县|