AnsweredAssumed Answered

Create user via REST always set global team, although force set team id.

Question asked by Autchara Chaiprom on Feb 28, 2016
Latest reply on Mar 10, 2016 by Autchara Chaiprom

Hi,

I try to create user via REST but I cannot set team id it always set to Global team, although I force set team id.

Create user following this Ref. http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/API/Web_Services/Examples/v10/module…

 

My request  looks like below:

 

$record_arguments = array(
    "user_name" => "testbyme",
    "first_name" => 'test',
    "last_name" => 'lastname',
    "status" => 'Active',
    "default_team" => 'team_id',
    "team_name" => array(
       
        "id" => 'team_id',
        "name" => 'A',
        "primary" => true,
        ),
);

 

How do I set team to team A?

 

Sugar 7.6 Ent

Thanks,

M

Outcomes