getProfileIds

for (profileId of user.getProfileIds()) {

}
String[] profileIds = user.getProfileIds();
<?php

use Kuzzle\Security\User;

// ...

/*
 * @var $user User
 */
foreach($user->getProfileIds() as $profileId) {

}

Returns the list of profile identifiers associated to this user.


Return value

Returns an array of strings of associated profile identifiers