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

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard