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
- Enable Google OAuth
Configure Google authentication in your instance: Google Login Setup. - Limit Domain (optional)
If all allowed users belong to one Google Workspace domain, use the Allowed Domain setting. -
Check User Email in App
Use theappsmith.user.email
property to identify the logged-in user.
Example (in widget visibility):{{ ["alice@example.com", "bob@example.com"].includes(appsmith.user.email) }}
- 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.