frontier icon indicating copy to clipboard operation
frontier copied to clipboard

superuser api access?

Open volfco opened this issue 5 months ago • 1 comments

I am writing a webhook handler that accepts events from Frontier and syncs the data to an external system.

The problem I have encountered is that there does not seem to be a way to generate a super user access token that lets me read the resource that I just received a webhook event for. Specifically, if I get a webhook event about a new project being created, I want to be able to then go and read the project that was just created.

I tried to make a service user under my admin user, but the problem becomes the service account is under an internal admin organization and does not work for resources in other organizations.

The only options I think I have are to use the X-Frontier-Email header or directly access the database and read the information from there. Neither seems ideal.

volfco avatar Jul 23 '25 19:07 volfco

Hey @volfco,

You are doing it correctly; you have to create an internal org and create a service user in it. Then you have to call the AddPlatformUser to add the service user as a platform user.

https://github.com/raystack/frontier/blob/main/proto/apidocs.swagger.yaml#L1395

rsbh avatar Aug 26 '25 06:08 rsbh