Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Suggested answer

Invoke an HTTP Request keeps failing

(1) ShareShare
ReportReport
Posted on by 2
I need to get the last sign in times of all users in a certain group for auditing purposes. I'm using the HTTP with Microsoft Entra ID (preauthorized) connector to connect to graph to try and get the signInActivity info. We are in GCC High so note that I'm using .us:
 
I keep getting the following error with any URL I try:
The error I'm getting just says "Action 'Invoke_an_HTTP_request' failed, but doesn't give any specific details.
 
The strange thing is that the output URL's work if I use them in graph PowerShell:
PS C:\Users\JeremyWade> $link = 'https://graph.microsoft.us/v1.0/users/fa0562e7-781b-4c2f-9f10-927ceffe8d15?$select=signInActivity'
PS C:\Users\JeremyWade> $response = Invoke-MGGraphRequest -Uri $link -Method Get
PS C:\Users\JeremyWade> $response.signInActivity.lastSuccessfulSignInDateTime

Thursday, April 3, 2025 4:30:00 AM
I also used the ManagePermissionGrant.ps1 script to authorize the connector to act on behalf of me, granting Directory.AccessAsUser.All, Directory.ReadWrite.All, and Directory.Read.All and set the env to USGov.
 
Any ideas why this is erroring?
Categories:
  • Suggested answer
    VictorIvanidze Profile Picture
    12,184 on at
    Invoke an HTTP Request keeps failing
    The account you are using to run the flow has insufficient rights to read other users data. 
  • MichaelFP Profile Picture
    1,737 Super User 2025 Season 1 on at
    Invoke an HTTP Request keeps failing
    Please share how you are setup your connection configuration ?
     
    Check if you connection is set as below
     
     
    Set in that way and test again please

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,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,708 Most Valuable Professional

Leaderboard

Featured topics