Hi,
This is the Grpah aPI I'm having trouble with: Jit Network Access Policies - Initiate - REST API (Azure Security Center) | Microsoft Docs
I'm trying to call this GRAPH API and I always get "Authentication Failed". I don't know what other type of permission the app identity needs. I granted for now all the GRAPH API... because I did not know what to else to assing...I'm able to get a TOKEN manually and I even tried the "Authentication" in advance options with the secret but I get the same "Authentication failed."
Anyone has solved how to call this API and what Permission it needs?
If I execute this from the documentation "Try it" it does work. So...not sure...
I did call other methods using the Advance option and manual bearer and it worked...so not sure...
GOT it SOLVED. 2 things:
1) I was using the graph as the scope when I requested the TOKEN, you should use the management.azure.com
2) I created an identity principal and with this identity it worked.
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional