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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Office 365 Users Send...
Power Automate
Unanswered

"Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

(0) ShareShare
ReportReport
Posted on by 19

I'm trying to use the "Office 365 Users Send an HTTP request (Preview)" action, and I'm getting a message that my query is invalid, even though it works in Graph Explorer.  Any help would be appreciated!

 

https://graph.microsoft.com/beta/users?$select=displayName,signInActivity,deletedDateTime,createdDateTime,mail,usertype&$filter=userType eq 'guest'

 

flowError.PNG

 

graphEx.PNG

 

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @PowerAppUser875 , I suspect it is the authentication part

    Watch this, there are couple to connectors you can use.

    How to use Microsoft Graph API in Power Automate - Beginner Tutorial - YouTube

     

  • VictorIvanidze Profile Picture
    13,083 on at

    Add / after users and before ?

    ...users/?$select...

     

  • PowerAppUser875 Profile Picture
    19 on at

    I tried that, and it gave me the same error. Maybe this endpoint is unsupported in this action? Thanks for the suggestion! 

    PowerAppUser875_0-1666701456760.png

     

  • PowerAppUser875 Profile Picture
    19 on at

    I had another query that did work, so I don't think it's the authentication, but I will watch the video you linked.  Thanks! 

  • VictorIvanidze Profile Picture
    13,083 on at

    I've got the same error as you trying to execute

    https://graph.microsoft.com/v1.0/users/

    Looks like a bug.

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi All,

     

    Like the error states, it looks like you need to use 2 segments in this specific action.

    https://learn.microsoft.com/en-us/connectors/office365users/#send-an-http-request-(preview)

     

    So, it might be a by design kind of thing and not a bug.

     

    Have you tried the Send an HTTP request from the Office 365 Groups connector instead?

     

    In that specific action escape the ? character with a / like @VictorIvanidze suggested btw 🙂

  • PowerAppUser875 Profile Picture
    19 on at

    Ahh... thanks!  I used the Office 365 Groups Connector, not the v2 preview connector, and was able to connect, but now I am getting a permissions error: Calling principal does not have required MSGraph permissions AuditLog.Read.All

     

    The account I'm running the flow under is a global admin.  Any suggestions on how to add the graph api permissions to this user in power automate to run the query?

     

    PowerAppUser875_0-1666717286708.png

     

  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @PowerAppUser875,

     

    You used the Graph Explorer with the same query to test it, right? Did you logon (right top corner) with that same account in the Graph Explorer?

     

    Normally that application also gives the option to assign/give consent for the correct Graph permissions.

  • PowerAppUser875 Profile Picture
    19 on at

    Yes, same account, but I did manually consent to the permissions in Graph Explorer.  Is there a way to consent to permissions for Power Automate. Thanks! 

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @PowerAppUser875 , you need to create an access_token to authenticate the Graph API. You need to generate the clientid, secretid and tenantid. Check this

    Build a Power Automate flow using the Graph API (techtarget.com)

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard