Topic by Sascha
Content
Hi,
i would like to add custom SocialUserRoleSets to a SocialUser object via connect php. The RoleSets are created in the AgentDesktop a need to be assigned to a user via Customer Portal. The Documentation of the Connect PHP API is not very clear for this functionality:
try {
$role_set = new $cphp_SocialUserRoleSet();
$role_set->ID = valid role ID;
$sss_user->RoleSets[] = $role_set;
$sss_user->save();
}
catch (Exception $err)
{
// handle exceptions
}
When using the code below nothing happens. Is there someone who has an idea?
Thanks!
Sascha
To assign a role set