Skip to main content

Notifications

Community site session details

Community site session details

Session Id : tZpiT9ajzCUxN0HKYZGba8
Power Automate - Building Flows
Answered

Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

Like (0) ShareShare
ReportReport
Posted on 5 Aug 2022 21:59:04 by 3,502

I want to get a security group ID by name, so i tried this HTTP request action, by passing this uri (https://graph.microsoft.com/v1.0/groups?$filter=displayname eq 'SEC-Project Repository Hub-Visitors'):-

 

johnjohn123_0-1659736699905.png

 

 

 

but i got this error

 

{
"error": {
"code": 400,
"message": "URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: groups. Uri: https://graph.microsoft.com/v1.0/groups?$filter=displayname eq 'SEC-Project Repository Hub-Visitors'",
"source": "canada-001.azure-apim.net",
"path": "choose[10]\\when[1]",
"policyId": "",
"clientRequestId": "*****"
}
}

 

any advice please?

  • djmaher Profile Picture
    6 on 08 Nov 2022 at 17:22:51
    Re: Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

    Can anyone tell me how to fix this , getting the same error . 

     

    https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+ 'group_name'

     

  • EzequielBarbosa Profile Picture
    3 on 28 Oct 2022 at 17:24:41
    Re: Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

    I'm facing the same problem. I included as it showed like this, but still the error persists:

     

    https://graph.microsoft.com/v1.0/groups/?$filter=displayName eq 'GA_GTI_TODOS'

     

    EzequielBarbosa_0-1666977870789.png

     

  • VictorIvanidze Profile Picture
    12,216 on 07 Aug 2022 at 14:31:13
    Re: Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

    Hi @MarconettiMarco ,

    I got this:

    {
     "error": {
     "code": "BadRequest",
     "message": "Invalid filter clause",
     "innerError": {
     "date": "2022-08-07T14:28:41",
     "request-id": "88b45b3d-46c3-4edb-9c68-847dd1a41274",
     "client-request-id": "569f6590-0ca6-e422-500a-e5e009eab8cd"
     }
     }
    }

     

    did you test it yourself? Where did you find this syntax - could you provide a link to documentation?

  • Verified answer
    VictorIvanidze Profile Picture
    12,216 on 07 Aug 2022 at 14:27:03
    Re: Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

    It's a known bug. Use this URI:

    https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+ 'SEC-Project Repository Hub-Visitors'

    Note a slash between groups and ?

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 06 Aug 2022 at 05:57:35
    Re: Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

    Hello @johnjohn123 ,

    you should use this URI: https://graph.microsoft.com/v1.0/groups?$filter=eq(displayName,SEC-Project Repository Hub-Visitors)

     

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started