Represents a user in your organization.
create(), update(), query(), search(), retrieve(), getUpdated(), describeSObjects(), upsert()
For more information, see “Managing Customer Portal Users” and “Managing Partner Users” in the Salesforce.com online help.
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| AccountId | reference | Filter | ID of the Account associated with a Customer Portal user. For information on IDs, seeID Field Type. This field is blank for Salesforce.com users. |
| Alias | string | Create | Required. The user’s alias. For example, “jsmith.” |
| CallCenterId | reference | Create | If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned. |
| City | string | Create | The city associated with the user. |
| CommunityNickname | string | Create | Name used to identify this user in the Community application, which includes the ideas and answers features. |
| CompanyName | string | Create | The name of the user’s company. |
| ContactId | reference | Create | ID of the Contact associated with this account. The contact must have a value in the AccountID field or an error occurs. For information on IDs, see ID Field Type. |
| Country | string | Create | The country associated with the user. |
| DefaultCurrencyIsoCode | picklist | Create | The user's default currency setting for new records. For example,
a user in France could have a DefaultCurrencyIsoCode set to Euros, and that would be their default currency in the application.
However, the User object could have currency custom fields stored
in a different currency. Only applicable for organizations that use multiple currencies. For more information, see CurrencyIsoCode |
| DefaultDivision | picklist | Create Restricted picklistUpdate | The user’s default division. Only applicable if divisions are enabled for your organization. For more information, see the Salesforce.com online help. |
| DelegatedApproverId | reference | Create | Id of the user who is a delegated approver for this user. |
| Department | string | Create | The company department associated with the user. |
| Division | string | Create | The division associated with this user, similar to Department and unrelated to DefaultDivision. |
| Create | Required. The user’s email address. | ||
| EmailEncodingKey | picklist | Create Restricted picklist | Required. The email encoding for the user, such as “ISO-8859-1” or “UTF-8”. |
| EmployeeNumber | string | Create | The user’s employee number. |
| Extension | phone | Create | The user’s phone extension number. |
| Fax | phone | Create | The user’s fax number. |
| FederationIdentifier | string | Create | Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on with Salesforce.com. This value must be specified if the SAML User ID Type is Assertion contains Federation ID from the User object. Otherwise, this field cannot be edited. |
| FirstName | string | Create | The user’s first name. |
| ForecastEnabled | boolean | Create | Indicates whether the user is enabled as a Forecast Manager (true) or not (false) in customizable forecasting. Forecast managers see forecast rollups from users below them in the forecast hierarchy. |
| IsActive | boolean | Create | Indicates whether the user has access to log in (true) or not (false). You can modify a User's active status from the Salesforce.com user interface or via the API. |
| IsPartner | boolean | Defaulted on create | Indicates whether the user is a partner who has access to the PRM Portal (true) or not (false). This field is not available for release 9.0 and later. Instead, use UserType with the value PRM. |
| IsPortalEnabled | boolean | Defaulted on create | Indicates whether the user has access to the partner portal or Customer Portal (true) or not (false). |
| IsPortalSelfRegistered | boolean | Defaulted on create | Indicates whether the user is a Customer Portal user who self-registered for your organization's Customer Portal (true) or not (false). This field is not available for
release 9.0 and earlier. For more information on the Customer Portal and self-registration, see Enabling Customer Portal Login and Settings in the Salesforce.com online help. |
| LanguageLocaleKey | picklist | Create Restricted picklist | Required. The user’s language, such as “French” or “Chinese (Traditional).” Label is Language. |
| LastLoginDate | dateTime | Filter | The date and time when the user last logged in. |
| LastName | string | Create | Required. The user’s last name. |
| LocaleSidKey | picklist | Create | Required. This field is a restricted picklist field. The value
of the field affects formatting and parsing of values, especially
numeric values, in the user interface. It does not affect the API. The field values are named according to the language, and country if necessary, using two-letter ISO codes. The set of names is based on the ISO standard. It can often be more convenient to manually set a user’s locale in the Salesforce.com user interface, and then use that value for inserting or updating other users via the API. |
| Manager | picklist | Create | User lookup field used to select the user's manager. This establishes a hierarchical relationship, preventing you from selecting a user that directly or indirectly reports to itself. |
| MobilePhone | phone | Create | The user’s mobile or cellular phone number. |
| Name | string | Filter | Concatenation of FirstName and LastName. Limited to 121 characters. |
| OfflineTrialExpirationDate | dateTime | Filter | The date and time when the user’s Connect Offline trial expires. |
| Phone | phone | Create | The user’s phone number. |
| PortalRole | picklist | Create | The role of the user in the Customer Portal (either Executive, Manager, User, or PersonAcount). Prior to API version 16.0, you could set this field to null and Salesforce.com automatically included a portal role. In API version 16.0 and above, when you set this field to null, Salesforce.com does not automatically include a portal role. |
| PostalCode | string | Create | The user’s postal or ZIP code. Label is Zip/Postal Code. |
| ProfileId | reference | Create | Required. ID of the user’s Profile. Use this value to cache metadata based on profile. For information on IDs, see ID Field Type. In earlier releases, this was RoleId. |
| ReceivesAdminInfoEmails | boolean | Create | Indicates whether the user receives email for administrators from salesforce.com (true) or not (false). |
| ReceiveInfoEmails | boolean | Create | Indicates whether the user receives informational email from salesforce.com (true) or not (false). |
| State | string | Create | The state associated with the User. |
| Street | textarea | Create | The street address associated with the User. |
| TimeZoneSidKey | picklist | Create | Required. This field is a restricted picklist field. A User’s time zone affects the offset used when displaying
or entering times in the user interface. However, the API does
not use a User’s time zone when querying or setting values. Values for this field are named using region and key city, according to ISO standards. It can often be more convenient to manually set a User’s time zone in the user interface, and then use that value for creating or updating other Users via the API. |
| Title | string | Create | The user’s business title, such as “Vice President.” |
| Username | string | Create | Required. Contains the name that a user enters to log into
the API or the Salesforce.com user
interface. The value for this field must be in the form of an email
address. It must also be unique across all Salesforce.com instances.
If you try to create() or update() a User with a duplicate value for this field, the operation
is rejected. Each inserted User also counts as a license in Salesforce.com. Every organization has a maximum number of licenses. If you attempt to exceed the maximum number of licenses by inserting User records, the create() call is rejected. |
| UserPermissionsCallCenterAutoLogin | boolean | Create | 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). |
| UserPermissionsMarketingUser | boolean | Create | Required. Indicates whether the user is enabled to manage campaigns in the online application (true) or not (false). Label is Marketing User. |
| UserPermissionsMobileUser | boolean | Create | Indicates whether the user is allocated one Salesforce Mobile license (true) or not (false). Label is Mobile User. The Salesforce Mobile license grants the user access to the Salesforce Mobile application on supported mobile devices. |
| UserPermissionsOfflineUser | boolean | Create | Required. Indicates whether the user is enabled to use Offline Edition (true) or not (false). Label is Offline User. |
| UserPermissionsSFContentUser | boolean | Create | Indicates whether the user is allocated one Salesforce CRM Content User License (true) or not (false). Label is Salesforce CRM User. The Salesforce CRM Content User license grants the user access to the Salesforce CRM Content application. |
| UserPermissionsWirelessUser | boolean | Create | Required if the Wireless permission is enabled for your organization. Indicates whether the user is enabled to use Wireless Edition (true) or not (false). Label is Wireless User. |
| UserPreferencesActivityRemindersPopup | boolean | Filter | When true, a reminder popup window automatically opens when an activity reminder is due. Corresponds to the Trigger alert when reminder comes due checkbox at in the Salesforce.com user interface. See “Customizing Activity Reminders” in the Salesforce.com online help. |
| UserPreferencesApexPagesDeveloperMode | boolean | Filter | When true, indicates the user has enabled developer mode for editing Visualforce pages and controllers. |
| UserPreferencesEventRemindersCheckboxDefault | boolean | Filter | When true, a reminder popup is automatically set on the user's events. Corresponds to the By default, set reminder on Events to... checkbox in the online application. This field is related to UserPreference. Also, see Customizing Activity Reminders in the Salesforce.com online help. |
| UserPreferencesTaskRemindersCheckboxDefault | boolean | Filter | When true, a reminder popup is automatically set on the user's tasks. Corresponds to the By default, set reminder on Tasks to... checkbox at in the online application. This field is related to UserPreference. Also, see Customizing Activity Reminders in the Salesforce.com online help. |
| UserPreferencesReminderSoundOff | boolean | Filter | When true, a sound automatically plays when an activity reminder is due. Corresponds to the Play a reminder sound checkbox at in the online application. See Customizing Activity Reminders in the Salesforce.com online help. |
| UserRoleId | reference | Create | ID of the user’s UserRole. Label is Role ID. |
| UserType | picklist | Filter |
The category of user license.
Each UserType is associated with one or more UserLicense records. Each UserLicense is associated with one or more profiles. In API version
10.0 and later, valid values include:
|
| WirelessEmail | Create | Wireless email address associated with this user. For use with Salesforce.com Wireless Edition. This field is available only if the Wireless and Email permissions are enabled for your organization. |
Use this object to query information about users and to provision and modify users in your organization. Unlike other objects, the records in the User table represent actual users—not data owned by users. All Users have access to use query() or describeSObjects() with User objects.
For security reasons, you cannot query User passwords via the API or the Salesforce.com user interface. However, the API allows you to set and “reset” User passwords using the setPassword() and resetPassword() calls. The password lockout status and the ability to reset the User locked-out status is not available via the API. You must check and reset the User password lockout status using the Salesforce.com user interface.