Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.26 KB

File metadata and controls

40 lines (31 loc) · 2.26 KB

User

Properties

Name Type Description Notes
key str The user key. This is the only mandatory user attribute. [optional]
secondary str If provided, used with the user key to generate a variation in percentage rollouts [optional]
ip str The user's IP address [optional]
country str The user's country [optional]
email str The user's email [optional]
first_name str The user's first name [optional]
last_name str The user's last name [optional]
avatar str An absolute URL to an avatar image. [optional]
name str The user's full name [optional]
anonymous bool Whether the user is anonymous. If true, this user does not appear on the Contexts list in the LaunchDarkly user interface. [optional]
custom Dict[str, object] Any other custom attributes for this user. Custom attributes contain any other user data that you would like to use to conditionally target your users. [optional]
private_attrs List[str] A list of attribute names that are marked as private. You can use these attributes in targeting rules and segments. If you are using a server-side SDK, the SDK will not send the private attribute back to LaunchDarkly. If you are using a client-side SDK, the SDK will send the private attribute back to LaunchDarkly for evaluation. However, the SDK won't send the attribute to LaunchDarkly in events data, LaunchDarkly won't store the private attribute, and the private attribute will not appear on the Contexts list. [optional]

Example

from launchdarkly_api.models.user import User

# TODO update the JSON string below
json = "{}"
# create an instance of User from a JSON string
user_instance = User.from_json(json)
# print the JSON string representation of the object
print(User.to_json())

# convert the object into a dict
user_dict = user_instance.to_dict()
# create an instance of User from a dict
user_from_dict = User.from_dict(user_dict)

[Back to Model list] [Back to API list] [Back to README]