cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions
VictorIvanidze
Community Champion
Community Champion

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 ?

 

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

View solution in original post

3 REPLIES 3
MarconettiMarco
Resident Rockstar
Resident Rockstar

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

 

VictorIvanidze
Community Champion
Community Champion

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 ?

 

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

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?

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,151)