UpdateUserGroup - PHP

Version 1
    This document was generated from CDN thread

    Created by: MARCUS STOLZENBERG on 02-08-2010 01:36:27 PM
    Hello,
     
    I try to add a existing Enduser to a Usergroup.
     
    I tried the following:
     
    ....
    $response = $client->updateUserGroup(array("name"=>"Standard CCM End Users",array("addMembers"=>array("member"=>"test"))));
     
    ...
     
    to add the User Test to the CCM Enduser Group.
     
    If I run the script I get no error.
    The CUCM returns a return string - looks like everything is ok.
     
    If I check the CCM User group I can not find any User test in it.
     
    cucm 8.02
     
    Best Regards,
    Marcus
     
     

    Subject: RE: UpdateUserGroup - PHP
    Replied by: Laurent TRELET on 04-11-2010 04:01:50 PM
    Hello Marcus,
     
    Do you have a solution with this "updateUserGroup" method (CUCM V7.1.5) ?
     
    I tried the same thing :
     
    ------------------------------
    updateUserGroup :
    <name>TESTGroup</name>
    <addMembers>
    <member>
      <userId>720000</userId>
    </member>
    </addMembers>
    ------------------------------
    or 
     
    ------------------------------

    <name>TESTGroup</name>
    <addMembers>
    <member index="0">
      <userId>720000</userId>
    </member>
    </addMembers>
    ------------------------------
     
    I have a OK result but the group is not updated... The user 720000 does not belong to TESTGroup.
     
    Does anyone have a solution ?
     
    Thanks a lot.
     
    Regards.

    Subject: RE: UpdateUserGroup - PHP
    Replied by: Laurent TRELET on 04-11-2010 04:22:19 PM
    Ok, sorry !
     
    It works only if the CUCM DB version specified in the header is 7.1 at least...
     
    Regards.
     
     
    Hello Marcus,
     
    Do you have a solution with this "updateUserGroup" method (CUCM V7.1.5) ?
     
    I tried the same thing :
     
    ------------------------------
    updateUserGroup :
    <name>TESTGroup</name>
    <addMembers>
    <member>
      <userId>720000</userId>
    </member>
    </addMembers>
    ------------------------------
    or 
     
    ------------------------------

    <name>TESTGroup</name>
    <addMembers>
    <member index="0">
      <userId>720000</userId>
    </member>
    </addMembers>
    ------------------------------
     
    I have a OK result but the group is not updated... The user 720000 does not belong to TESTGroup.
     
    Does anyone have a solution ?
     
    Thanks a lot.
     
    Regards.