Flagsmith Help Desk
Go to website
Back
Articles on:User Traits
Information about managing User Traits in Flagsmith

Categories

  • General Admin
  • User Traits
  • Best Practices
  • System Admin
  • A/B and Multivariate Testing
  • Segments
  • Open Source
  • Data Management
  • Flag Analytics
  • Integrations
  • How do I create a new User?
    Identities are created within Flagsmith automatically the first time they are identified from your client SDKs. Generally you'd make a call to identify a user with a unique string/id whenever they log into your app/site. The SDK will then send an API message to the Flagsmith API, with the relevant Identity information. You can also find more information in the following link: https://docs.flagsmith.com/basic-features/managing-identitiesidentity-traitsSome readers
  • How do I add traits to identities?
    You can do that in the SDKs, that is a primary thing the SDK can do. For example in Javascript, you would write something like this: Trait userTrait = await bulletClient.SetTrait("myuserid", "myusertrait", "blue");Some readers
  • Is it possible for Trait values to have spaces?
    Yes, Trait values can be stored as one of four different data types: Boolean String (max length 2000 bytes) Int (32 bit signed) Float (typically has a range of around 1E-307 to 1E+308 with a precision of at least 15 digits) If you need to store 64 bit integers or very high precision floats we suggest storing them as Strings and then doing the type conversion within the SDK.Few readers
  • Is there a "user_created" trait that I get automatically, so I do not need to add one?
    Flagsmith does not currently have automatic traits (like location, create date etc), but it is on our backlog.Few readers
  • Can I create common User Traits for all users in the same environment?
    No, Traits are created automatically when you set them for each Identity.Few readers
  • Can I create User Traits from the client-side SDK?
    Yes, you can use the setTrait method. You can get more details in the Docs for our SDKs here: https://docs.flagsmith.com/clients/javascript/available-functionsFew readers
  • Is it possible to search for users by trait values?
    This isn't possible at the moment. It is in the backlog, however.Few readers

Not finding what you are looking for?

Chat with us or send us an email.

  • Chat with us
© 2023 Flagsmith Help Desk