API - Get requests for current technician's support group

API - Get requests for current technician's support group

Hi all,

I need to query the API for unassigned requests and the current technician's assigned requests filtered by their support group. All I have is their AD username.

I'm thinking a service account with a technician key would do the querying, since there is no access to technician keys. I would have to do an admin query for all support groups. Then, for each support group, query for all the technicians in that group and compare their names with the results of a query for all requesters by loginname (AD username). When I found the appropriate group containing the current user, I would then need some sort of map from support group to request filter, and then query all requests using the support group's custom request filter.

This is obviously a very convoluted plan. Is there a better solution?

Thanks,

-Anton

                  New to ADSelfService Plus?