[ 
https://issues.apache.org/jira/browse/AIRAVATA-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079476#comment-16079476
 ] 

Marcus Christie commented on AIRAVATA-2405:
-------------------------------------------

I've tried a different approach.  It's expensive to fetch all of the users and 
it's expensive to then check the roles of each of those users.  So as a 
compromise I have the code fetch all of the users, then order the user by 
created date, then take just the most recent 100 and check their roles.  This 
covers the use case where an admin wants to see a list of recent user-pending 
users.

This still isn't a great approach.  It suffers from the problem that with a 
large enough count of users it will take too long to load them all.

It's hard to come up with a good solution here without a feature in Keycloak to 
search for users by role.

> Keycloak: search for users with a given role
> --------------------------------------------
>
>                 Key: AIRAVATA-2405
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2405
>             Project: Airavata
>          Issue Type: Bug
>          Components: PGA PHP Web Gateway
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>             Fix For: 0.18
>
>
> In PGA, admins can search for users that have a selected role.
> It would be good to implement this in IamAdminServices in the backend and 
> then call that from PGA.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to