I have problem similar to this one.
I want assign node to section while being created. During php node creation I use:
which should assign node to certain section, but after script execution I see "Section: Unassigned".
When I do separately:
$node = node_load(823); $node->workbench_access=array('1067'); node_save($node);
..it works. Section gets assigned. As I read Workbench access there might be some bugs preventing this from working (comments like "// Workbench Moderation submits the node twice???" and deleting of redundant nodes?)..
If it was matter of 1 node I would drop it and use second code.. But it seems like I need hundrets of nodes to be created at once so I'd rather avoid loading and saving node only for section assignment.