SDK Javascript v5.x

setContent #

Replaces the content of User.

Updating a user will have no impact until the [`create`](/sdk/js/5/core-classes/user/create) or [`replace`](/sdk/js/5/core-classes/user/replace) method is called

setContent(data) #

Arguments Type Description
data JSON Object User content

Return Value #

Returns the User object.

Usage #

Copied to clipboard!
var user ='myuser');
var userContent = {
  profileIds: ['profileId']
user = user.setContent(userContent);