cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samtn
Regular Visitor

message: Unsupported resource type Directory Object for operation Create

[AzureAD-DirectoryObject] - I am trying to do a POST operation to add a directory object (device) to a group. ref: https://docs.microsoft.com/de-de/graph/api/group-post-members?view=graph-rest-1.0&tabs=http

 

Request:

Method: POST

URI: "https://graph.microsoft.com/v1.0/groups/<group-id>/members/"

Header: 

{
  "Content-Type""application/json"
}
 

Body: 

 

{
}
 
 
Response: 
 
Status code: 400
Response Body: 
{
  "error": {
    "code""Request_BadRequest",
    "message": "Unsupported resource type 'DirectoryObject' for operation 'Create'.",
    "innerError": {
      "date""2021-06-14T08:34:28",
      "request-id""***************************************",
      "client-request-id""*******************************"
    }
  }
}
 
 
Adding more info to narrow down the issue, like mentioned in this post https://stackoverflow.com/questions/56320640/adding-user-to-group-using-graph-api-b2c if I try from MSGraph explorer it works without an issue but the same not working with [Flow-Action-HTTP]. 
 
samtn_0-1623661599790.png

 

As you can see above it works perfectly with MSGraph. please assist 

 
here is my flow screenshot.
samtn_0-1623663158796.png

 

 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
samtn
Regular Visitor

Issue resolved. it was due to syntax error.

View solution in original post

1 REPLY 1
samtn
Regular Visitor

Issue resolved. it was due to syntax error.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,990)