web
You’re offline. This is a read only version of the page.
close
Skip to main content
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:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    @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,060 on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    Add / after users and before ?

    ...users/?$select...

     

  • PowerAppUser875 Profile Picture
    19 on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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,060 on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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
    33,181 Most Valuable Professional on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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
    33,181 Most Valuable Professional on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    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,394 Most Valuable Professional on at
    Re: "Office 365 Users Send an HTTP request (Preview)" Graph Query Issue

    @PowerAppUser875 , you need to create an access_token to authenticate the Graph API. You need to generate the clientidsecretid 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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard