Unknown SDK


Replaces the security profiles linked to the user.

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


Arguments Type Description
profileIds array of strings List of profile IDs


Arguments Type Description
profiles array of Profile objects An array of instantiated Profile objects

Return Value

Returns the User object.


Copied to clipboard!
use Kuzzle\Security\Profile;
use Kuzzle\Security\User;
// ...
$profile = $kuzzle->security->fetchProfile('myProfile');
  * @var $user User
// Updating the profile with a Profile object
// Updating the profile with a profile ID