Share via

Graph API error on filter with Groups

Hyde 1 Reputation point
2026-03-25T03:33:02.8466667+00:00

Hello everyone,

I am trying to get this URI (https://graph.microsoft.com/v1.0/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')) to work in Power Automate and I have tested it in the Graph Explorer and am getting the following error:

User's image

Any suggestions are appreciated,
Hyde

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-25T03:33:17.1666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error occurs because the $filter expression is malformed. In Microsoft Graph, query options such as $filter must be separated from the resource path by a ?, not appended as another path segment.

    Instead of:

    https://graph.microsoft.com/v1.0/groups$filter=resourceProvisioningOptions/Any(x:x eq 'Team')
    

    use:

    https://graph.microsoft.com/v1.0/groups?$filter=resourceProvisioningOptions/any(x:x eq 'Team')
    

    Key points:

    1. There must be a ? before $filter.
    2. $filter is a query parameter, not part of the /groups path.
    3. The any operator syntax follows the same pattern as other $filter examples, such as:
         ~/groups?$filter=NOT groupTypes/any(c:c eq 'Unified')
      
    4. resourceProvisioningOptions is the property that indicates a group has a team; any group that has a team has resourceProvisioningOptions containing "Team".

    Use the corrected URL in Graph Explorer and in Power Automate’s HTTP/Graph actions, and the request should succeed.


    References:

    You found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.