wesley.smith | 2022-07-17 04:18:49 UTC | #1
GET/api/v2/workforcemanagement/managementunits/{managementUnitId}/users allows us to get users that are currently assigned to a workforce management unit. If a user was previously in a management unit but was removed, that user is not returned in the response.
I need to list all users that were in a workforce management unit during a given date range, even if those user are no longer in the workforce management unit .
Is there any way to do this?
Eos_Rios | 2022-07-18 13:49:22 UTC | #2
Not the way you want.
If you run an adherence report for the range you're interested in it will have the people actually in the MU during that period, but there's no way to get a temporal view of the MU hierarchy itself without the data. It's present tense only, not point in time. This true of most dimensions and hierarchies in Genesys cloud ( skills, queues, MU, BU, groups ).
brian.trezise | 2022-07-18 20:20:15 UTC | #3
There is not currently any way to directly fetch the membership of a management unit at a given point in time, only the current membership.
You could approximate what you're looking for with this route, just leave the userIds param empty: POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search But that will not catch any users that were in the management unit but not on any schedules during that time range.
The historical adherence method suggested above would get the data on users in the management unit during the time period from this data, but then does more calculations than you need, so probably isn't ideal.
All that said, our product managers take user suggestions and ideas seriously. If you could go to the Genesys Ideas Portal and add an idea along with your use case it will be taken into consideration when planning future feature development.
Thanks!
system | 2022-08-18 20:20:28 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 15557