Skip to main content

setUserProperties(userProperties)

Updates user properties for the current booted user.

:::warn Minimum version required -- v1.10

Be sure you're running at least commandbar v1.10 - you can find all versions for reference here.

:::

Examples

Update user properties

const userProperties = { isPaid: true };

window.CommandBar.setUserProperties(userProperties);

Method parameters

userProperties Required

object

Key-value pairs to be associated with the end user ID Command AI was booted with.

Sets the user properties for the current user. These properties will be associated with the user and can be used for targeting. boot() must be called before setUserProperties() can be called.