Category: Settings
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Can I Restrict Users to Access My Application?

Issue

As a developer, I want to restrict access to my application to only a few users with Google accounts. I want to do this using Google authentication oAuth API and not by sharing the application. I also want to use these users/members in my coding. However, I am not sure how to implement this in Appsmith as the access control feature is still being developed.

Resolution

You can restrict access to your Appsmith app so that only specific Google users are allowed.

Steps

  1. Enable Google OAuth
    Configure Google authentication in your instance: Google Login Setup.
  2. Limit Domain (optional)
    If all allowed users belong to one Google Workspace domain, use the Allowed Domain setting.
  3. Check User Email in App
    Use the appsmith.user.email property to identify the logged-in user.
    Example (in widget visibility):

    {{ ["alice@example.com", "bob@example.com"].includes(appsmith.user.email) }}

  4. Granular Access Control (optional)
    For role-based restrictions, see Granular Access Control.

Notes

  • If you only need a few specific accounts, maintain a list of allowed emails and check against appsmith.user.email.
  • Don’t make the app “Public” as that bypasses authentication.
  • Some advanced access control options require Business/Enterprise plans.