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 / message: Unsupported r...
Power Automate
Answered

message: Unsupported resource type Directory Object for operation Create

(0) ShareShare
ReportReport
Posted on by 9

[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

 

 
 
 
Categories:
I have the same question (0)
  • Verified answer
    samtn Profile Picture
    9 on at

    Issue resolved. it was due to syntax error.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard