cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
supportguy
Frequent Visitor

when using office 365 users - send http request preview - error 400 - URI path is not a valid Graph endpoint

Hello:
 
I am trying to use this Office 365 action to list a users group memberships, but this action fails, and I have not been able to find useful information in resolving it. Any help is welcomed.
 
NOTE: for upn I am using a users user@domain.com, I have also tried with the user object id, neither works
 
Action 'Send_an_HTTP_request' failed
 
error details
URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: me,users Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri: https://graph.microsoft.com/v1.0/users/<upn>/memberof 
 
response body:
{
  "error": {
    "code"400,
    "message""URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: me,users Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri: https://graph.microsoft.com/v1.0/users/<upn>/memberof",
    "source""flow-apim-unitedstates-002-westus-01.azure-apim.net",
    "path""choose[3]\\when[1]",
    "policyId""",
    "clientRequestId""<a_guid>"
  }
}
 
{
  "Access-Control-Allow-Methods""GET, PUT, PATCH, DELETE, POST",
  "Access-Control-Allow-Origin""*",
  "Access-Control-Max-Age""3600",
  "Access-Control-Expose-Headers""*",
  "Date""Mon, 08 Aug 2022 22:22:55 GMT",
  "Content-Length""565",
  "Content-Type""application/json"
}
1 ACCEPTED SOLUTION

Accepted Solutions
supportguy
Frequent Visitor

This issue was due to user error, after reading the documentation again, I realized that the "2nd segment" I was trying to use is not supported.

 

Construct a Microsoft Graph REST API request to invoke. These segments are supported: 1st segement: /me, /users/ 2nd segment: messages, mailFolders, events, calendar, calendars, outlook, inferenceClassification. Learn more:

View solution in original post

7 REPLIES 7
edgonzales
Super User
Super User

@supportguy 

Hey there.  So, I wonder if it's wanting the GUID to be a part of the graph request.  When you say you tried the "user object ID", is that the same as the ID from like a "Get User Details"?

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

WillPage
Solution Sage
Solution Sage

Why not use the Azure AD connector which has this function built in? https://docs.microsoft.com/en-us/connectors/azuread/#get-groups-of-a-user-(v2)

 

If you mean the clientrequestid, that's a guid returned as part of the error. It's not a required input (as far as I know)

 

User object id is the Azure AD object ID of the user.

Typically, that is what I would use, but the Get groups of a user (V2) has the down of side of returning only the object id of the group, and not other details that I am trying to supply to other actions down the line such as the name of the group.

WillPage
Solution Sage
Solution Sage

I see. You can get the group details for each group and append to an array variable inside an apply to each, but yes, I appreciate you could end up with a long running flow if you do that.

 

supportguy
Frequent Visitor

To work around this, I switched to using the premium http action, and everything works.

 

supportguy
Frequent Visitor

This issue was due to user error, after reading the documentation again, I realized that the "2nd segment" I was trying to use is not supported.

 

Construct a Microsoft Graph REST API request to invoke. These segments are supported: 1st segement: /me, /users/ 2nd segment: messages, mailFolders, events, calendar, calendars, outlook, inferenceClassification. Learn more:

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,849)