Salesforce supported attributes and error handling

The document lists the supported Salesforce attributes and their mapped Cloud Directory attributes along with other details.

Supported attributes

Table 1. Attributes
Attribute name Definition Mapped Cloud Directory attribute (default mapping) Type Mandatory Modifiable
userName User's user name that is used when the application is created. email String Yes No
emails.work User's Work email email String Yes No
name.familyName User's family name family_name String Yes Yes
name.givenName User's given name given_name String No Yes
displayName User's Display name name String No No
CommunityNickname Name used to identify this user in the Community application, which includes the ideas and answers features. None String No No
phoneNumbers.work User's work phone number None String No Yes
title User's Department Title department String No Yes
preferredLanguage User's Preferred language language String No No
entitlements.Profile User profile attribute None String Yes Yes
CommunityNickname User's Community nickname None String No No
LocaleSidKey User's locale None String No Yes
TimeZoneSidKey User's time zone None String No Yes
phoneNumbers.work User's work phone number mobile_number String No Yes
Fax User's Fax None String No Yes
MobilePhone User's mobile phone number None String No Yes
Street User's street None String No Yes
City User's city None String No Yes
State User's State None String No Yes
PostalCode User's postal code None String No Yes
addresses.work.country User's work addresses work_country String No Yes
role User's role in the company None String No Yes
employeeNumber User's employee number employee_id String No Yes
division User's division None String No Yes
department User's department department String No Yes
Alias User's alias None String No Yes
EmailEncodingKey The email encoding for the user, such as ISO-8859-1 or UTF-8. None String No No
CompanyName User's Company name None String No Yes
ContactId User's contact ID None Reference No Yes
AccountId User's account ID None Reference No Yes
FederationIdentifier User's federation identifier None String No Yes
CallCenterId User's call center ID None Reference No Yes
ReceivesInfoEmails Indicates whether the user receives informational email from Salesforce (true) or not (false). None Boolean No Yes
ReceivesAdminInfoEmails Indicates whether the user receives email for administrators from Salesforce (true) or not (false). None Boolean No Yes
UserPermissionsMarketingUser Indicates whether the user is enabled to manage campaigns in the user interface (true) or not (false). None Boolean No Yes
UserPermissionsOfflineUser Indicates whether the user is enabled to use Offline Edition (true) or not (false). None Boolean No Yes
UserPermissionsCallCenterAutoLogin Required if Salesforce CRM Call Center is enabled. Indicates whether the user is enabled to use the auto login feature of the call center (true) or not (false). None Boolean No Yes
UserPermissionsMobileUser User's user permissions None Boolean No Yes
UserPermissionsSFContentUser Indicates whether the user is allocated one Salesforce CRM Content User License (true) or not (false). None Boolean No Yes
UserPermissionsKnowledgeUser Indicates whether the user is enabled to use Salesforce Knowledge (true) or not (false). None Boolean No Yes
UserPermissionsInteractionUser Indicates whether the user can run flows (true) or not (false). None Boolean No Yes
UserPermissionsSupportUser When true, the user can use the Salesforce console. None Boolean No Yes
ForecastEnabled Indicates whether the user is enabled as a Forecast Manager (true) or not (false) in customizable forecasting. None Boolean No Yes
UserPreferencesActivityRemindersPopup Determines whether the reminder window opens when an activity is due. None Boolean No Yes
UserPreferencesEventRemindersCheckboxDefault Sets a default time for event reminders. None Boolean No Yes
UserPreferencesTaskRemindersCheckboxDefault Sets a default time for task reminders. None Boolean No Yes
UserPreferencesReminderSoundOff Determines whether a sound is played. None Boolean No Yes
UserPreferencesApexPagesDeveloperMode Toggle development mode on or off. None Boolean No Yes
UserPreferencesEnableAutoSubForFeeds When true, the user automatically subscribes to feeds for any objects that the user creates. None Boolean No Yes
Extension User's extension None Boolean No Yes
AboutMe More about the user None String No Yes
DigestFrequency Frequency for User's personal Digest (Daily, weekly, monthly) None String No Yes

Error handling

Table 2. Error codes
Sr. No. Status code Definition
1. 400 Fall through since it's token request only.
2. 401 Authentication error
3. 403 Confirmed tate limit error or adapter error.