Question

2
Replies
1151
Views
REDDR3 Member since 2011 6 posts
PEGA
Posted: May 5, 2018
Last activity: May 8, 2018
Closed

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 ...it 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?

Security
Moderation Team has archived post
Share this page LinkedIn