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 / Dynamic Group with Gra...
Power Automate
Unanswered

Dynamic Group with Graph and Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Getting tripped up with the single quote in the membershipRule property, using format in this article which works in Graph Explorer. Flow says invalid json, tried a few variations like ("user.department -eq \"Marketing\"") which is valid to Flow, but Graph throws a "bad request" error.

{
"groupTypes":[
 "Unified",
 "DynamicMembership"
],
"membershipRule": 'user.department -eq "Marketing"',
"membershipRuleProcessingState": "on"
}

Any suggestions to try?

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

     Hi @marklitwin ,

     

    Could you share more details on your scenario?

     

    Are you trying to connect to Microsoft Graph?

     

    I have seen a request on creating a Microsoft Graph Connector:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Create-a-Microsoft-Graph-Connector/idi-p/186346

     

    Another blog on how to extend Microsoft Flow with the Microsoft Graph for your reference:

    https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Extend-Microsoft-Flow-with-the-Microsoft-Graph-and-0-code/ba-p/61662

     

    Best regards,

    Mabel

     

  • ismo-creator Profile Picture
    4 on at
    {
    "groupTypes":[
     "Unified",
     "DynamicMembership"
    ],
    "membershipRule": "user.department -eq \"Marketing\"",
    "membershipRuleProcessingState": "on"
    }

    you need to escape your quotes in the JSON to push them to the call 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard