addProfile #
Replaces the security profile associated with the user.
addProfile(profileId) #
Arguments | Type | Description |
---|---|---|
profileId | string | Profile ID |
addProfile(profile) #
Arguments | Type | Description |
---|---|---|
profile | Profile | An instantiated Profile object |
Return Value #
Returns the User
object.
Usage #
// Updating the profile with a Profile object
kuzzle
.security
.fetchProfile("myprofile", opts, new ResponseListener<Profile>() {
@Override
public void onSuccess(Profile profile) {
// Can add the profile directly with a Profile object
user.addProfile(profile);
}
});
// Updating the profile with a profile ID
user.addProfile("myprofile");
Edit this page on Github(opens new window)