How can I lockdown an app to a specific environment?

1) My goal:
I want to have 3 versions of my app (DEV, TEST, and PROD), where each app is locked to it's respective environment.

2) Issue:
I do not understand how default an app to a specific environment.

3) Steps I've taken to troubleshoot:
I have tried to append _environment=[env_name]. It doesn't seem to work consistently, nor do I think that is a solid solution.

Hi @ryanlebato,

Thanks for reaching out! We have environment permissions on the Enterprise plan. Teams on the Business plan cannot set app/resource permission based on environment. For Enterprise organizations, you can expand each resource in the permissions settings to select a specific environment:

CleanShot 2025-03-27 at 11.47.30

Then, when the user accesses the app, they'll only have access to query that resource in the environment according to their permission groups

The _environment url param (Built-in URL parameters | Retool Docs) should work when logged in, but it won't work in public apps.