Close popover
Ravi Prakash Reddy (REDDR3)
Architect CRM - Customer Service
Pegasystems Inc.
REDDR3 Member since 2011 6 posts
Posted: May 5, 2018
Last activity: May 8, 2018

List of operators by given roles

Hi Team,

My requirement is to query list of operators based on some role? for example... give me list of all employees who are manager role.

Here is what i've tried, but doesn't work for me..

1. HaveRole, HavePriv... couldn't be used as these runs logged in user context.

2. can't rely on Index-AccessGroupRoles table as it wouldn't respect Access deny checks.

3. I think we can't just open the AG and iterate over pyUserRoles as this also may not repsect deny checks.

One option (could be not so great option) that may work here is make a REST/SOAP/HTTP request with the opertaor and use HaveRole, HavePriv and return response.. but this is not so good option....user need to use credentials of the operator doesn't work well in real time scenarios... (my idea is to maintain table between operator roles or AG roles)

Have anyone faced similar use cases?

Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.