Mapping groups for Embed users

When setting up embedded retool for users, different users have access to different apps based on their group memberships within our app, these memberships need to be mapped to Retool groups to grant access to apps.

To achieve this the plan is:

  • Create Retool groups named using our app's group ID.
  • Query Retool for groups to get the Retool Group ID to pass into the embed API based on the user's current group memberships.
  1. My goal:
    Query user groups from Retool to map them onto embed users.
  2. Issue:
    I can't find a way to get the Retool group IDs so these can be mapped to users.
  3. Steps I've taken to troubleshoot:
    I've read the API docs and tried to query the API but keep getting a 401 error on the groups endpoints.
  4. Additional info: (Cloud or Self-hosted, Screenshots)
    Cloud

Hey @LeoAdamek - welcome back to the community. :slightly_smiling_face:

Your plan sounds like it should work just fine, once we figure out this last step. I agree that dynamically fetching the group IDs via the Retool API would be ideal, but that particular set of endpoint is scoped to the Enterprise plan. If your Retool groups are fairly static, though, would it be sufficient to hard code them into the parent app? If so, you can manually grab those IDs from the /settings/permissions page.

The groups aren't static and that isn't a practical solution for us.

Why is something as basic and essential as querying a list of users or groups locked behind an enterprise plan? Any application integrating with Retool needs to know which groups/users are present in order to keep this up-to-date.

What other solutions are there to handle this requirement?