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 / Custom Connector - Mic...
Power Automate
Answered

Custom Connector - Microsoft Graph with Filter

(0) ShareShare
ReportReport
Posted on by 43

Hello,


I'm trying to create a custom connector for Microsoft Graph to get user details from our Azure AD B2C and I need to use $filter the request for issuerAssignedId and have to use a $select to return data that is not part of the standard return.

 

The query is:

QueryQuery

My issue with the way that I have it setup is that the definition request has the query parameters as $filter and $search:

 

Test Operation Query ParametersTest Operation Query Parameters

 

How would I go about modifying it so that the only thing the only that needs to be supplied is the e-mail address.  I'd like the $select to be fixed / same every time as well as the $filter with the exception of what is highlighted:

Query HighlightedQuery Highlighted

 

Is there a way I can do that with the Definition / Request or any other way?  

 

Thanks,


Greg

Categories:
  • Verified answer
    ajayan Profile Picture
    11 on at

    Hi @atp 

     

    To default the $select parameter you can take two approaches.

    1. Define a Policy - Define a "Set query string parameter" policy and set the value as required, and user gets  only the $filter option

    ajayan_0-1616388097685.png

    2. Provide a default $select value (and define the visibility to Advanced to that the parameter is hidden under the additional menu when you configure the PA)

    ajayan_3-1616388610521.png

    I would prefer the second approach as it provides a configurable option while leveraging connector. 

     

    To set the $filter parameter, I don't know if it is possible to set as per your requirement. However, before using the action in PA, user can define a variable to set the filter criteria as required (and demand only the user principal).

     

    ajayan_5-1616390154396.png

     

    If this post helps, please consider Accept it as the solution to help the other members .

  • atp Profile Picture
    43 on at

    Thank you.  I found the option 2 on $select works perfect.  Ideally the custom connector could have taken the e-mail address as dynamic content directly but creating the variable in the flow works perfectly and is still easy enough.  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard