Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Add SocialUserRoleSets via Connect PHP

$
0
0

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

 

Version

Connect PHP

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles