403 error in custom app calling code engine function

sourabh05
sourabh05 Member
edited January 31 in APIs & Domo Developer

I am building a custom app that uses a API call to call a code engine function.. when I deploy and run this app it works fine but when I deploy this to different users they are not able to use this functionality..

console log shows 403 error, so I am assuming this is because they don't have access to run code engine function. How do I work around that restriction (apart from just giving everyone access to run code engine which I am not planning to).

Is there a way to impersonate a user access while making this api call? Or perhaps use some service account to make this call?

Thanks for your help!

Answers

  • brycec
    brycec Contributor

    Which API are you using and how are you authenticating? You should be able to use the Product API endpoint for Code Engine and use the X_DOMO_DEVELOPER header to authenticate with an access token.

    Was this comment helpful? Click Agree or Like below.
    Did this comment solve your problem? Accept it as the solution!