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

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.
主站蜘蛛池模板: 连南| 简阳市| 天津市| 苍溪县| 沂水县| 莆田市| 灵武市| 阿拉尔市| 梨树县| 鄂州市| 梅州市| 苗栗市| 塔河县| 崇义县| 德州市| 卢湾区| 乌鲁木齐县| 诏安县| 昭通市| 双柏县| 澎湖县| 伊春市| 正宁县| 高邮市| 成都市| 河北省| 鸡东县| 乐山市| 泽普县| 比如县| 屏山县| 浪卡子县| 界首市| 通山县| 凯里市| 宜州市| 永丰县| 崇阳县| 仙游县| 宿州市| 策勒县|