ConnectApi.User

User.

This class is abstract.

Subclass of ConnectApi.ActionWithId.

Superclass of:

NameTypeDescriptionAvailable Version
additional​LabelStringIf one exists, an extra label for the user, for example, “Customer,” “Partner,” or “Acme Corporation.”30.0
communityNicknameStringUser’s nickname in the site.32.0
companyNameStringName of the company.
If your Experience Cloud site allows access without logging in, the value is null for guest users.
28.0
displayNameStringUser’s name that is displayed in the site. If nicknames are enabled, the nickname is displayed. If nicknames aren’t enabled, the full name is displayed.32.0
firstNameStringUser’s first name. In version 39.0 and later, if nicknames are enabled, firstName is null.28.0
isChatterGuestBooleantrue if user is a Chatter customer; false otherwise.28.0
isInThisCommunityBooleantrue if user is in the same site as the context user; false otherwise.28.0
lastNameStringUser’s last name. In version 39.0 and later, if nicknames are enabled, lastName is null.28.0
outOfOfficeConnectApi.OutOfOfficeIf one exists, extra out-of-office message for the user.40.0
photoConnectApi.PhotoInformation about the user’s photos.28.0
reputationConnectApi.ReputationReputation of the user.32.0
stampsList<ConnectApi.Stamp>Collection of the user’s stamps.
In version 44.0 and later, use SOQL to get a user’s stamps.
39.0–43.0
titleStringUser’s title.
If your Experience Cloud site allows access without logging in, the value is null for guest users.
28.0
userTypeConnectApi.​UserType EnumType of user.
  • ChatterGuest—User is an external user in a private group.
  • ChatterOnly—User is a Chatter Free customer.
  • Guest—User is unauthenticated.
  • Internal—User is a standard org member.
  • Portal—User is an external user in an Experience Cloud site.
  • System—User is Chatter Expert or a system user.
  • Undefined—User is a user type that is a custom object.
28.0

See Also