Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Dynamic Group with Graph and Flow

(0) ShareShare
ReportReport
Posted on by

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?

 

 

  • ismo-creator Profile Picture
    4 on at
    Re: Dynamic Group with Graph and Flow
    {
    "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 

  • v-yamao-msft Profile Picture
    on at
    Re: Dynamic Group with Graph and Flow

     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

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492