Assign Departments to a user.
The ID of the User.
The IDs of User Departments you wish to set for the User.
FM_api('User_setDepartments', ['id' => '123', 'vals' => '1, 2, 3']);
{'ok':1}
Last updated 3 years ago