Optional anonymousWhether to show the user on the Users page in LaunchDarkly.
Optional avatarAn absolute URL to an avatar image for the user.
Optional countryThe country associated with the user.
Optional customAny additional attributes associated with the user.
Optional emailThe user's email address.
If an avatar URL is not provided, LaunchDarkly will use Gravatar
to try to display an avatar for the user on the Users page.
Optional firstThe user's first name.
Optional ipThe user's IP address.
Optional keyA unique string identifying a user.
If you omit this property, and also set anonymous to true, the SDK will generate a UUID string
and use that as the key; it will attempt to persist that value in local storage if possible so the
next anonymous user will get the same key, but if local storage is unavailable then it will
generate a new key each time you specify the user.
It is an error to omit the key property if anonymous is not set.
Optional lastThe user's last name.
Optional nameThe user's name.
You can search for users on the User page by name.
Optional privateSpecifies a list of attribute names (either built-in or custom) which should be marked as private, and not sent to LaunchDarkly in analytics events. This is in addition to any private attributes designated in the global configuration with LDOptions.privateAttributes or LDOptions.allAttributesPrivate.
A LaunchDarkly user object.
Deprecated
The LDUser object is currently supported for ease of upgrade. In order to convert an LDUser into a LDSingleKindContext the following changes should be made.
1.) Add a kind to the object.
kind: 'user'.2.) Move custom attributes to the top level of the object.
3.) Move
privateAttributeNamesto_meta.privateAttributes.