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

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.
主站蜘蛛池模板: 昆明市| 阿合奇县| 霍州市| 平泉县| 万山特区| 元阳县| 景德镇市| 奈曼旗| 安陆市| 梁平县| 东辽县| 顺义区| 平湖市| 荥经县| 深州市| 嵊泗县| 德江县| 城固县| 铜川市| 陕西省| 尉犁县| 历史| 高平市| 武义县| 泽州县| 洛川县| 曲松县| 荣昌县| 永胜县| 内江市| 黔西县| 谷城县| 巴塘县| 万源市| 清徐县| 桑日县| 安远县| 张北县| 水城县| 宣恩县| 日喀则市|