Showing results for 
Show  only  | Search instead for 
Did you mean: 

What oauth scope is needed to run an app function?

Dynatrace Guru
Dynatrace Guru

I can't find in the documentation the scope needed in the configuration to run an app function. I guess that's a reason why I get 403 in the app when trying to call it?

Senior Product Manager,
Dynatrace Managed expert

Dynatrace Champion
Dynatrace Champion

as long as you user has the policy app-engine:functions:run and app-engine:apps:run you should be covered. I never had to any scopes when I wanted to call the functions.

How do you call your function? do you do it with fetch(<relative url>) or with<function name>)

Dynatrace Advisor
Dynatrace Advisor

Hi Radosław,

In addition to what Sinisa wrote; apps might require additional scopes that are necessary for them to work properly. Those scopes are defined in app.config.ts. Here's an Automations app example:

2022-12-13 14_56_10-Clipboard.png

More details about the scopes setting:

Your AutomationEngine ally!

That's what I needed! I had to just add:


@sinisa_zubic  any plans to add it to the Dynatrace Developer portal?

Senior Product Manager,
Dynatrace Managed expert

it is already in Dynatrace Developer in the SDK documentation. e.g. when you use the getCredentials function you can see the needed scope:

also you see for which call you need the app-engine:apps:run scope, e.g. here:

There are ideas for improvement, but no timeline

Featured Posts