id | string | number | The unique ID which is used to identify the user in TalkJS |
name | string | The user's name which will be displayed on the TalkJS UI |
photoUrl | string | null | An optional URL to a photo which will be displayed as the user's avatar |
welcomeMessage | string | null | The default message a user sees when starting a chat with that person |
role | string | null | TalkJS supports multiple sets of settings, called "roles". Roles allow you to change the behavior of TalkJS for different users. You have full control over which user gets which configuration. |
custom | CustomData | Allows you to set custom metadata for the User. Set any property to null to delete the existing value, if any. When omitted or undefined , the existing value remains unchanged. |
availabilityText | string | null | Availability acts similarly to welcomeMessage but appears as a System Message |
locale | string | null | The locale field expects an IETF language tag. See the localization documentation. |