SunshineConversationsClient::User

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
idStringThe unique ID of the user.[optional]
authenticatedBooleanWhether or not the user has authenticated, either via JWT or via the Help Center[optional][readonly]
external_idStringAn optional ID that can also be used to retrieve the user.[optional]
zendesk_idStringThe ID that links a messaging user to its core Zendesk user counterpart. This ID can be used to fetch the core user record via the Zendesk Support API.[optional]
signed_up_atStringThe date at which the user signed up. Must be ISO 8601 time format `YYYY-MM-DDThh:mm:ss.sssZ`.[optional]
to_be_retainedBooleanFlag indicating whether a user should be retained after they have passed their inactive expiry. See creating deletion schedules for bot-only conversations for more information.[optional]
profileProfile[optional]
metadataHash<String, Object>Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.[optional]
identitiesArray<Identity>The user's connected identities.[optional][readonly]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::User.new(
  id: 7494535bff5cef41a15be74d,
  authenticated: null,
  external_id: your-own-id,
  zendesk_id: 30045042291606,
  signed_up_at: 2020-05-21T15:53:30.197Z,
  to_be_retained: null,
  profile: null,
  metadata: {&quot;lang&quot;:&quot;en-ca&quot;},
  identities: null
)