Describe the bug
The application list page uses GET /api/v1/applications?fields=... which, depending on the number of projects holding OIDC groups, requires more time to answer the request.
In our environment, it already takes between 12s-14s to answer the request.

We count:
To Reproduce
Expected behavior
A response time that is less dependent on the number of applications, projects and groups involved.
Same issue, we are using v1.7.4
Also, I've notice, that if login using built-in account to the same api server response more quickly.
We have about 800+ applications in 2 clusters.
My results with SSO login and RBAC:

Using built-in administrator account:

NOTE: The admin is special because it has no groups and therefore enforcement is simpler.
Between 50 to 70 OIDC groups per user
I think we need an optimization to use a temporary map to lookup oidc groups rather than current implementation to iterate the groups list
Great news if this is solved with 1.8!
Looking into this.
Most helpful comment
NOTE: The admin is special because it has no groups and therefore enforcement is simpler.
I think we need an optimization to use a temporary map to lookup oidc groups rather than current implementation to iterate the groups list