Getting the list of organizational units for a user’s positions is done using two methods, “code” and “design”, which are given below with related explanations.

bpmAppService.BPMSServices.MercuryService.GetDepartmentByUser(input1);
input1: ID User
Output: List(Department)