setContent

Replaces the content of User.

Updating a user will have no impact until the create or replace method is called.


setContent(data)

Arguments Type Description
data JSON Object User content

Return Value

Returns the User object.

Usage

Copied to clipboard!

<?php

use Kuzzle\Security\User;

// ...

$userContent = [
  'profileIds' => ['profileId']
];

/*
  * @var $user User
  */
$user->setContent($userContent);