Skip to main content
Participating Frequently
Feb 14, 2022 6:18 AM UTC
Question

Get list of applications

Hi all,

I have a requirement to retrieve the list of applications and display for each user the applications that he can view them.

Any ideas ?

2 replies

stefanhelzle0001
Brainy
Feb 14, 2022 6:47 AM UTC

We just had that exact same discussion here a few weeks ago. Access to applications is controlled by group membership. Listing applications will not help you.

harshitb6843
Brainy
Feb 14, 2022 6:55 AM UTC

How about creating a constant of 'List of Application' type and then using that constant wherever required. 
Like Stefan mentioned, the user might not have access to all the apps, then, in that case, you can reject that app through the reject() function in the code. 
But this will add a dependency to update the constants whenever a new app is created in the system,