User class getters

content

Returns a JSON string representing the user's content stored by Kuzzle.

Signature

Copied to clipboard!
const std::string& content() const;

id

Returns the user's unique identifier (or kuid).

Signature

Copied to clipboard!
const std::string& id() const;

profile_ids

Returns the list of profile identifiers attached to this user.

Signature

Copied to clipboard!
const std::vector<std::string>& profile_ids() const;

Usage

Copied to clipboard!
kuzzleio::User user;

std::string user_content = user.content();

std::string user_id = user.id();

std::vector<std::string> profile_ids = user.profile_ids();