web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Invoke an HTTP Request...
Power Automate
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:
I have the same question (0)
  • MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    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
  • Suggested answer
    VictorIvanidze Profile Picture
    13,073 on at
    The account you are using to run the flow has insufficient rights to read other users data. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard