I have an app that requires 2 levels of permissions: viewer and admin, where all admins are also viewers. This is not related to the Retool groups All viewers and Admins.
I could create 2 groups, however I cannot see how to add one group to another group, i.e. a sub-group, or is there a better way to do this - I have looked at Roles and Permissions, but this does not look to be a solution.
3 Likes
Hey @klautier
In Retool, groups don’t support nesting, so one group can’t inherit permissions from another.
A simple workaround is to create two groups—Viewer and Admin—and add admin users to both. This way, admins automatically get viewer permissions as well.
Another approach is to manage roles (like admin and viewer) in your database, and handle access control through your app’s logic instead.
1 Like