Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Change Events for Users
The user and email preferences in change events include only the preferences that
are enabled (set to true) without their Boolean values. Preferences that are disabled (set to
false) are not included in the event payload.
For a list of user and email preferences, see the User Object in the Object Reference.
Example
This change event is generated when a User record is created. Preferences are included under EmailPreferences and UserPreferences.
1{
2 "ChangeEventHeader": {
3 "entityName": "User",
4 "recordIds": [
5 "0055f00000GBZR4AAP"
6 ],
7 "changeType": "CREATE",
8 "changeOrigin": "",
9 "transactionKey": "00068e80-1b23-ad90-c49d-ca6a5759661b",
10 "sequenceNumber": 1,
11 "commitTimestamp": 1714155903000,
12 "commitNumber": 1100662266706,
13 "commitUser": "0055f000005mc66AAA",
14 "nulledFields": [],
15 "diffFields": [],
16 "changedFields": []
17 },
18 "Username": "olga.brown@example.com",
19 "Name": {
20 "Salutation": null,
21 "FirstName": "Olga",
22 "LastName": "Brown"
23 },
24 "CompanyName": null,
25 "Division": null,
26 "Department": null,
27 "Title": null,
28 "Address": null,
29 "Email": "katia_hage@hotmail.com",
30 "EmailPreferences": [
31 "AutoBcc",
32 "StayInTouchReminder"
33 ],
34 "SenderEmail": null,
35 "SenderName": null,
36 "Signature": null,
37 "StayInTouchSubject": null,
38 "StayInTouchSignature": null,
39 "StayInTouchNote": null,
40 "Phone": null,
41 "Fax": null,
42 "MobilePhone": null,
43 "Alias": "obrown",
44 "CommunityNickname": "User17141558217316917617",
45 "IsActive": true,
46 "IsSystemControlled": false,
47 "TimeZoneSidKey": "America/Los_Angeles",
48 "UserRoleId": null,
49 "LocaleSidKey": "en_US",
50 "ReceivesInfoEmails": true,
51 "ReceivesAdminInfoEmails": true,
52 "EmailEncodingKey": "UTF-8",
53 "ProfileId": "00e5f000002mIQ6AAM",
54 "UserType": "Standard",
55 "UserSubtype": null,
56 "LanguageLocaleKey": "en_US",
57 "EmployeeNumber": null,
58 "DelegatedApproverId": null,
59 "ManagerId": null,
60 "LastLoginDate": null,
61 "LastPasswordChangeDate": null,
62 "CreatedDate": 1714155903000,
63 "CreatedById": "0055f000005mc66AAA",
64 "LastModifiedDate": 1714155903000,
65 "LastModifiedById": "0055f000005mc66AAA",
66 "NumberOfFailedLogins": null,
67 "OfflineTrialExpirationDate": null,
68 "OfflinePdaTrialExpirationDate": null,
69 "UserPermissions": [
70 "SFContentUser"
71 ],
72 "ForecastEnabled": false,
73 "UserPreferences": [
74 "ActivityRemindersPopup",
75 "EventRemindersCheckboxDefault",
76 "TaskRemindersCheckboxDefault",
77 "DisableLikeEmail",
78 "SortFeedByComment",
79 "ShowTitleToExternalUsers",
80 "HideS1BrowserUI",
81 "LightningExperiencePreferred",
82 "HideSfxWelcomeMat"
83 ],
84 "ContactId": null,
85 "AccountId": null,
86 "CallCenterId": null,
87 "Extension": null,
88 "FederationIdentifier": null,
89 "AboutMe": null,
90 "DigestFrequency": "D",
91 "DefaultGroupNotificationFrequency": "N",
92 "JigsawImportLimitOverride": 300,
93 "WorkspaceId": null,
94 "IsProfilePhotoActive": false,
95 "IndividualId": null
96}