Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 92

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

  • Verified answer
    drako Profile Picture
    92 on at
    Re: Permision/authenticate Graph HTTPS for https://docs.microsoft.com/en-us/rest/api/securitycenter/jit-network-access-policies/initiate

    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. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow