i'm trying to create new users through this API as part of a data migration to teamwork. i can create new accounts/contacts fine but the company ID even when specified does not set properly. so say i was trying to add the user using the example code below and the company id was valid (which for the actual data its been checked) but it adds to the owner company. is the ability to add users to specific companies been implemented or does the wrapper need to be adjusted to account for this?
i'm trying to create new users through this API as part of a data migration to teamwork. i can create new accounts/contacts fine but the company ID even when specified does not set properly. so say i was trying to add the user using the example code below and the company id was valid (which for the actual data its been checked) but it adds to the owner company. is the ability to add users to specific companies been implemented or does the wrapper need to be adjusted to account for this?
$peoples = TeamWorkPm\Factory::build('people'); $people = json_decode($peoples->save(array( 'first_name' => 'exa', 'last_name'=> 'mple', 'company_id'=> '00000', 'user_type'=> 'contact', 'email_address'=> 'email@example.co.uk', 'user_name'=>'example', 'send_welcome_email' => 'no' )));