_setDepartments

Assign Departments to a user.

Parameters

id

The ID of the User.

vals

The IDs of User Departments you wish to set for the User.

Example

FM_api('User_setDepartments', ['id' => '123', 'vals' => '1, 2, 3']);

Result

On Success

{'ok':1}

Last updated