How can we populate the Users on the Request Additional Field belonging to Specific Department's?

How can we populate the Users on the Request Additional Field belonging to Specific Department's?

Dear All,

We have created a Request Additional Field which will populate users available present in our Servicedesk plus using below Script using FAFR form load.

Script : var userList = "GUDF_CHAR7"; $CS.referField(userList, "users", {url: "/api/v3/users"}); 

Now, how can we only populate the users on the fields belonging to a specific department only.

For example, We want to populate the Users belonging to only Marketing and Human Resource departments.

Regards,
Wajahath Farooq

                  New to ADSelfService Plus?