Constructor is not exposed in the JS/Node SDK. You may get the instantiated
 Security object by calling
var kuzzleSecurity =;
// using the static instance
Security security =;

// or instantiating a new Security object
Security security = new Security(kuzzle);

use \Kuzzle\Kuzzle;
use \Kuzzle\Security\Security;

$kuzzle = new Kuzzle('localhost');

// using the static instance
$security = $kuzzle->security();

// or instantiating a new Security object
$security = new Security($kuzzle);

The Security component lets you handle user permissions in Kuzzle.

Please refer to our permissions guide for more information.


Arguments Type Description
Kuzzle object An instantiated Kuzzle object