Build a customer portal | Retool Docs

I am trying to build a portal that shows the avaiable apps. but somehow I cannot make it happen.

"Build a customer portal | Retool Docs

This example app contains links to other Retool apps. You can filter which links are available for the user based on their permission groups using JavaScript. For example, you can use the Hidden property to hide certain tiles if the current user isn't in the Pharmacist Manager permission group"

the {{AppSearch}} returns no data and whatever I do I cannot find any documentation that

  1. describes this process in detail
  2. references the available variables in UI such as {{AppSearch}} and their properties.

How can I access the apps a user has access to? Or what am I doing wrong if the AppSource should display them but it does not? Any help is appreciated

Thanks!

Hi Inno,
Do you have a business or enterprise plan? And are you an admin? It looks like that is one requirement for that feature.

In the links you included I didn't see anything about AppSearch. What is AppSearch? Is it a query you wrote?

Hope that helps.

Business plan user and yes I am the Admin.
When you configure the portal page you get a sample, and in there I found what I suspect is the variables to use for accessing the apps I have access to as a user. But other than that, i cannot find any documentation, any reference ... nothing about how I can actually implement a query that takes the user group of the user and the apps to which the group has access.

image

Hello @Inno_uchile.cl!

So I just went through the 'External App' sample app creation for the first time :sweat_smile:

It looks like "AppSearch" is the search bar component that appears in the default app. Right below the "Your apps" title component.

This component will gain a "value" with whatever the user types into this component and seems to be set up to filter which apps are shown inside the Grid component.

As the Grid component has its data source set to be the result of the "FilteredApps" Transformer that you cropped in your screenshot.

When writing a query, you can access the groups that the current user is a part of using a javascript block of code such as current_user.groups.includes("Pharmacist Manager") for example.

I am not sure how to find a list of apps which a user has access to based on their group :sweat_smile: but you can user Javascript and some programming logic to Hide app links/components, such as the Container components inside the Grid component, if a user is not in a group that has access to them.

So that a component with !current_user.groups.includes("Pharmacist Manager") will be hidden to all users, except users that are in the Pharmacist Manager group.

Hope this helps!