Restrict the app to certain roles / groups during app installation

When an app is installed, all the app becomes visible in all the placeholders configured in manifest.json.

However, a common request I get from customers is show the app only to agents belonging to certain roles or groups.

This functionality can be achieved by fetching the current loggedInUser and comparing it with the allowed role that can be taken as an input in iparams.

Since this is a fairly common requirement for any app on the Freshworks marketplace, it would be nice if the platform did this at the time of app installation.