Get list of Work Queues the user has access to
In the Case Worker portal, My Teams, <select Work Group name> : Here you can find list of Work Queues (workbaskets) that are associated with the selected work group.
We have a requirement to only show the Work Queues that the operator has access to.
1) Some Work Queue has Role set, so that user without this Role should not be able to work assignments in this Work Queue. This work queue should not be visible in the Case Worker portal if the user's current access group does not have one of the roles associated with this Work Queue
2) Some Work Queues are defined on the operator record. These should be displayed in the Work Queue
How to achieve the above two objectives? especially the first one.