cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drako
Resolver I
Resolver I

Permision/authenticate Graph HTTPS for https://docs.microsoft.com/en-us/rest/api/securitycenter/jit-network-access-policies/initiate

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...

1 ACCEPTED SOLUTION

Accepted Solutions
drako
Resolver I
Resolver I

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. 

View solution in original post

1 REPLY 1
drako
Resolver I
Resolver I

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. 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,769)