What are the possible options for UserType?

  • The Salesforce docs describe the UserInfo.getUserType() call, which returns the same options as user.UserType. But I can't figure out where to find a list of the possible return values. Please provide a complete list, including what each value means.

    Amazing, I was thinking about this exact question yesterday. This has really helped me out

  • Tim Smith

    Tim Smith Correct answer

    9 years ago

    Your best bet is to refer to the Salesforce api docs. They do a good job of explaining the fields and their possible values. The link to the doc in question is: https://developer.salesforce.com/docs/atlas.en-us.212.0.api.meta/api/sforce_api_objects_user.htm

    I've included the snippet from the UserType field below.

    Description 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:

    • Standard: user license. This user type also includes Salesforce Platform and Salesforce Platform One user licenses. Label is Standard.
    • PowerPartner: PRM user whose access is limited because he or she is a partner and typically accesses the application through a partner portal. Label is Partner.
    • CSPLitePortal: user whose access is limited because he or she is an organization's customer and accesses the application through aCustomer Portal. Label is High Volume Portal.
    • CustomerSuccess: user whose access is limited because he or she is an organization's customer and accesses the application through a Customer Portal. Label is Customer Portal User.
    • PowerCustomerSuccess: user whose access is limited because he or she is an organization's customer and accesses the application through a Customer Portal. Label is Customer Portal Manager. Users with this license type can view and edit data they directly own or data owned by or shared with users below them in the Customer Portal role hierarchy.
    • CsnOnly: user whose access to the application is limited to Chatter. This user type includes Chatter Free and Chatter moderator users. Label is Chatter Free.

    There are some undocumented usertypes, such as Guest, which is used for force.com and site.com sites users.

    Here's a bit more info about UserType guest. Ryan is correct in that they appear in a EE/UE SF orgs' Force.com site.

    Additionally, if the Automated Process user is running (most commonly seen as the user creating DuplicateRecordSet and DuplicateRecordItem objects as part of Salesforce Duplicate Management), the UserType returned by this "ghost" user is "AutomatedProcess". Similarly, the License Management App "ghost" user has a UserType of "LicenseManager". I call these "ghost" users because they don't exist as User records and are not returned in SOQL queries.

License under CC-BY-SA with attribution


Content dated before 7/24/2021 11:53 AM

Tags used