Embed app using custom authentication API

Goal:
I've built an analytics and stats dashboard using Retool and would like to embed it into my application. The idea is to manage access on an organization level, rather than on a per-user basis, as I have dozens of organizations using the app.

Issue:
I followed all the steps outlined in the Custom Authentication with Retool API guide, but I'm encountering the error:
“You do not have permission to access this app.”
For context, I'm on the Business plan.

What I’ve tried:
I'm sending all the required parameters in the authentication request, including:

  • landingPageUuid
  • groupIds
  • externalIdentifier

Despite this, I'm still seeing the permission error. What can be the issue?

Thanks for reaching out, @Usama_Basharat! The specific error that you're seeing indicates to me that the groups specified by groupIds may not have access to the app specified by landingPageUuid. I would double check your org's granular permission settings!

In general, though, I find it helpful to look at one of our sample implementations when working with this particular endpoint. Let me know when you've had a chance to review permissions, as I noted above, and let me know if you have any additional questions!

HI @Darren Thanks for your response. The group has access to that app (Please check attached SS)

One question, Do i need to set the app as external app as well before accessing through my Web application?
.

Hmm no, you should be able to reference the UUID of any app as long as the groups you're specifying have access. Can you share the body of the request that you're making to the /api/embed-url/external-user endpoint?